From: Jeff King <peff@peff.net>
To: Dan Albert <danalbert@google.com>
Cc: git@vger.kernel.org
Subject: Re: [PATCH] Uses git-credential for git-imap-send
Date: Sun, 27 Apr 2014 03:51:10 -0400 [thread overview]
Message-ID: <20140427075110.GA19976@sigill.intra.peff.net> (raw)
In-Reply-To: <CAFVaGhuXvZhRCHRFurKNOC4tsiQ7WZnGb2CbRnoSSYg=XknJtg@mail.gmail.com>
On Sat, Apr 26, 2014 at 11:30:11AM -0700, Dan Albert wrote:
> I had resent a less broken patch after I noticed the tabs, but it seems to
> have gotten lost. Better formatted patch at the bottom of this message.
Your emails (including this one) are multipart/alternatives with an html
part, which will cause the mailing list software to reject them.
This email also still seems whitespace-damaged to me (the leading tabs
are collapsed to a single space).
It looks like you're using gmail to send; you might try using "git
send-email" (the example at the end of "git help send-email" can walk
you through it).
> About imap vs. imaps: I actually had your exact line in before, but decided
> that as long as its for the same host the user probably wants to use the
> same credentials for both imap and imaps (if they for some reason had both
> configured). Hard coding "imap" allows them to use either protocol with
> only one keychain entry. The use case is a stretch, but it doesn't do any
> harm to implement it this way.
My concerns with conflating the two are:
1. The system helper might care about the distinction and prefer imaps
(e.g., it might already have the credential stored for your regular
mail client, which uses imaps). But osxkeychain is the only helper
that makes the distinction, and I don't really know how OS X's
keychain code handles the distinction.
2. With http and https, we are careful to make the distinction,
because we would not want to accidentally share a credential over http
that was stored via https. But it's pretty easy to use an http URL
rather than an https one. It's probably pretty rare to accidentally
turn off imap SSL.
So I'd be OK with leaving it as "imap" for now, and waiting for somebody
to actually come up with a real case where the distinction matters.
> ---
>
> Uses git-credential for git-imap-send
>
> git-imap-send was directly prompting for a password rather than using
> git-credential. git-send-email, on the other hand, supports git-credential.
>
> This is a necessary improvement for users that use two factor
> authentication, as
> they should not be expected to remember all of their app specific passwords.
>
> Signed-off-by: Dan Albert <danalbert@google.com>
> ---
> imap-send.c | 29 +++++++++++++++--------------
> 1 file changed, 15 insertions(+), 14 deletions(-)
A side note on formatting your commit message: The maintainer picks up
patches from the list with "git am", which will take everything up to
the first "---" as the commit message, and discard everything after up
to the start of the diff. So in this case it would take your
cover-letter material as the commit message, and drop your actual commit
message.
The usual formats are either to put the cover letter material after the
"---", like:
$COMMIT_MESSAGE
Signed-off-by: You
---
$COVER_LETTER
$DIFFSTAT
$DIFF
or to use a scissors-line "-- >8 --" instead of three-dash:
$COVER_LETTER
-- >8 --
$COMMIT_MESSAGE
---
$DIFFSTAT
$DIFF
-Peff
next prev parent reply other threads:[~2014-04-27 7:51 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-26 17:50 [PATCH] Uses git-credential for git-imap-send Dan Albert
2014-04-26 18:08 ` Jeff King
[not found] ` <CAFVaGhuXvZhRCHRFurKNOC4tsiQ7WZnGb2CbRnoSSYg=XknJtg@mail.gmail.com>
2014-04-27 7:51 ` Jeff King [this message]
2014-04-27 17:58 ` Dan Albert
2014-04-28 19:23 ` Jeff King
2014-04-29 3:00 ` Dan Albert
2014-04-29 3:05 ` Jeff King
2014-04-29 17:19 ` Junio C Hamano
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=20140427075110.GA19976@sigill.intra.peff.net \
--to=peff@peff.net \
--cc=danalbert@google.com \
--cc=git@vger.kernel.org \
/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).