Re: [PATCH] git-send-email: add ~/.authinfo parsing
- From
Jeff King <peff@peff.net>
- Date
- Feb 4, 2013, 20:10 UTC
- Message-ID
- <20130204201040.GA13272@sigill.intra.peff.net>
- In-Reply-To
- <878v74vwst.fsf@lifelogs.com>
On Mon, Feb 04, 2013 at 12:00:34PM -0500, Ted Zlatanov wrote:
Show 20 quoted lines
> On Mon, 04 Feb 2013 17:33:58 +0100 Michal Nazarewicz <mina86@mina86.com> wrote: > > MN> As far as I understand, there could be a git-credential helper that > MN> reads ~/.authinfo and than git-send-email would just call “git > MN> credential fill”, right? > > MN> I've noticed though, that git-credential does not support port argument, > MN> which makes it slightly incompatible with ~/.authinfo. > > My proposed netrc credential helper does this :) > > The token mapping I use: > > port, protocol => protocol > machine, host => host > path => path > login, username, user => username > password => password > > I think that's sensible.
Technically you can speak a particular protocol on an alternate port:
https://example.com:31337/repo.git
In this case, git will send you the host as:
example.com:31337
You might want to map this to "port" in .autoinfo separately if it's available.
-Peff