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

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

From
KFKnut Franke <k.franke@science-computing.de>
Date
Aug 30, 2010, 11:44 UTC
Message-ID
<201008301344.22983.k.franke@science-computing.de>
In-Reply-To
<7vaao8hsmx.fsf@alter.siamese.dyndns.org>
On Friday 27 August 2010 19:28:38 Junio C Hamano wrote:
> I don't see ASKPASS documented anywhere in the Documentation/ in the first
> place.  Perhaps we would want to fix that while we are at it.

It's at least mentioned in the core.askpass documentation added by the patch, but I'll try to improve.

Incidentally, the documentation for other environment variables (GIT_PROXY_COMMAND, GIT_SSL_CERT, GIT_SSL_KEY, GIT_SSL_NO_VERIFY, GIT_SSL_CERT_PASSWORD_PROTECTED, GIT_SSL_CAINFO, GIT_SSL_CAPATH) is equally sparse.

> 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.
-- 
Vorstand/Board of Management:
Dr. Bernd Finkbeiner, Dr. Roland Niemeier, 
Dr. Arno Steitz, Dr. Ingrid Zech
Vorsitzender des Aufsichtsrats/
Chairman of the Supervisory Board:
Michel Lepert
Sitz/Registered Office: Tuebingen
Registergericht/Registration Court: Stuttgart
Registernummer/Commercial Register No.: HRB 382196 
Previous: Junio C HamanoNext: Erik Faye-Lund
Message 3 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.