From: Jeff King Date: Thu, 31 Jan 2013 19:38:45 GMT Subject: Re: [PATCH] git-send-email: add ~/.authinfo parsing Message-ID: <20130131193844.GA14460@sigill.intra.peff.net> In-Reply-To: <87pq0l5qbc.fsf@lifelogs.com> On Thu, Jan 31, 2013 at 10:23:51AM -0500, Ted Zlatanov wrote: > Jeff, is there a way for git-credential to currently support > authinfo/netrc parsing? I assume that's the right way, instead of using > Michal's proposal to parse internally? > > I'd like to add that, plus support for the 'string' and "string" > formats, and authinfo.gpg decoding through GPG. I'd write it in Perl, > if there's a choice. Yes, you could write a credential helper that understands netrc and friends; git talks to the helpers over a socket, so there is no problem with writing it in Perl. See Documentation/technical/api-credentials.txt for an overview, or the sample implementation in credential-store.c for a simple example. -Peff