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

Re: [PATCH] send-email: fix docs regarding storing password with git credential

From
Jeff King <peff@peff.net>
Date
Apr 4, 2018, 21:14 UTC
Message-ID
<20180404211446.GC15402@sigill.intra.peff.net>
In-Reply-To
<20180402232348.20293-1-mina86@mina86.com>
On Tue, Apr 03, 2018 at 12:23:48AM +0100, Michal Nazarewicz wrote:
> First of all, ‘git credential fill’ does not store credentials
> but is used to *read* them.  The command which adds credentials
> to the helper’s store is ‘git credential approve’.

Yep, makes sense (I wish we had just called these consistently "get", "store", and "erase" as they are in the git<->helper interface).

Show 6 quoted lines
> Second of all, git-send-email will include port number in host
> parameter when getting the password so it has to be set when
> storing the password as well.
> 
> Apply the two above to fix the Gmail example in git-send-email
> documentation.

Makes sense. This is an interesting counter-example to my earlier "well, it usually works out in the long run" statement. Because usually you're relying on some part of Git to issue the "fill" and the "approve", so whatever it uses, it will be the same. But here we're trying to pre-seed, so we have to match what the tool will do.

On the other hand, I'm not sure why we need to pre-seed here. Wouldn't it be sufficient to just issue a "git send-email", which would then prompt for the password? And then you'd input your generated token, which would get saved via the approve mechanism?

-Peff
Previous: Michal NazarewiczNext: Michal Nazarewicz
Message 4 of 7 in “send-email: report host and port separately when calling git credential”
  1. send-email: report host and port separately when calling git credentialMichal Nazarewicz, Mar 31, 2018
  2. Junio C HamanoApr 2, 2018
  3. send-email: fix docs regarding storing password with git credentialMichal Nazarewicz, Apr 2, 2018
  4. Jeff KingApr 4, 2018
  5. send-email: simplify Gmail example in the documentationMichal Nazarewicz, Apr 7, 2018
  6. Michał NazarewiczApr 7, 2018
  7. Jeff KingApr 4, 2018

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.