git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH 1/2] Add a new option 'core.askpass'.

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Aug 30, 2010, 13:56 UTC
Message-ID
<20100830135658.GC2315@burratino>
In-Reply-To
<201008301344.22983.k.franke@science-computing.de>
Knut Franke wrote:
> On Friday 27 August 2010 19:28:38 Junio C Hamano wrote:
Show 15 quoted lines
>> Also this
>> does not feel like a "core." thing, but it may be just me.
>
> Where else could it go? It's not entirely http specific:
>
> $ grep git_getpass *.c
> connect.c:char *git_getpass(const char *prompt)
> http.c:                 user_pass = xstrdup(git_getpass("Password: "));
> http.c: ssl_cert_password = git_getpass("Certificate Password: ");
> http.c:                          * git_getpass is needed here because its very likely stdin/stdout are
> http.c:                          * but that is non-portable.  Using git_getpass() can at least be stubbed
> http.c:                         user_name = xstrdup(git_getpass("Username: "));
> imap-send.c:                    arg = git_getpass(prompt);
>
> Nor does it relate to a single command.

Perhaps "push.askpass" and "imap.askpass", maybe with the latter defaulting to the former or something? This would help preserve the illusion that the git commands are sort of independent tools.

Haven't thought deeply about it at all, though.
Previous: Erik Faye-LundNext: Jonathan Nieder
Message 5 of 6 in “Add a new option 'core.askpass'.”
  1. 1/2 Add a new option 'core.askpass'.Knut Franke, Aug 27, 2010
  2. Junio C HamanoAug 27, 2010
  3. Knut FrankeAug 30, 2010
  4. Erik Faye-LundAug 30, 2010
  5. Jonathan NiederAug 30, 2010
  6. Jonathan NiederAug 30, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.