git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: How to redirect git std input in Python?
       [not found] <f3b45643-6ca5-4f7f-aec2-8438d1451629.kan.wu@genetalks.com>
@ 2019-12-06  2:40 ` Jeff King
  0 siblings, 0 replies; only message in thread
From: Jeff King @ 2019-12-06  2:40 UTC (permalink / raw)
  To: 吴侃; +Cc: gitster, git

On Fri, Dec 06, 2019 at 09:34:30AM +0800, 吴侃 wrote:

> To: gitster <gitster@pobox.com>, peff <peff@peff.net>

Please send questions to the public mailing list at git@vger.kernel.org.
Then more people will see your question, and everyone will benefit from
seeing the answer.

> I want to develop a git plugin in a Python IDE.when i clone a private
> git project,it needs to input username and passward in terminal.
> [...]
> so i want to redirect the username or password input to a dialog use
> Python in my plugin.

Look into either the GIT_ASKPASS environment variable described in "git
help git", or if you want something a little nicer, the credential
subsystem (described in https://git-scm.com/docs/gitcredentials, but
especially the "custom helpers" part at the end).

-Peff

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-12-06  2:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <f3b45643-6ca5-4f7f-aec2-8438d1451629.kan.wu@genetalks.com>
2019-12-06  2:40 ` How to redirect git std input in Python? Jeff King

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).