From: Jeff King <peff@peff.net>
To: Michal Nazarewicz <mina86@mina86.com>
Cc: Junio C Hamano <gitster@pobox.com>,
git@vger.kernel.org, Michael Rappazzo <rappazzo@gmail.com>
Subject: Re: [PATCH] send-email: fix docs regarding storing password with git credential
Date: Wed, 4 Apr 2018 17:14:46 -0400 [thread overview]
Message-ID: <20180404211446.GC15402@sigill.intra.peff.net> (raw)
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).
> 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
next prev parent reply other threads:[~2018-04-04 21:14 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-31 18:05 [PATCH] send-email: report host and port separately when calling git credential Michal Nazarewicz
2018-04-02 22:05 ` Junio C Hamano
2018-04-02 23:23 ` [PATCH] send-email: fix docs regarding storing password with " Michal Nazarewicz
2018-04-04 21:14 ` Jeff King [this message]
2018-04-07 10:07 ` [PATCH] send-email: simplify Gmail example in the documentation Michal Nazarewicz
2018-04-07 10:08 ` [PATCH] send-email: fix docs regarding storing password with git credential Michał Nazarewicz
2018-04-04 21:07 ` [PATCH] send-email: report host and port separately when calling " Jeff King
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180404211446.GC15402@sigill.intra.peff.net \
--to=peff@peff.net \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=mina86@mina86.com \
--cc=rappazzo@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).