From: Jeff King Date: Wed, 18 Jul 2012 12:25:56 GMT Subject: Re: [PATCH 3/4] credential: convert "url" attribute into its parsed subparts Message-ID: <20120718122555.GA11482@sigill.intra.peff.net> In-Reply-To: On Wed, Jul 18, 2012 at 02:24:01PM +0200, Matthieu Moy wrote: > Jeff King writes: > > > $ echo https://user@example.com | git credential ident > > protocol=https > > host=example.com > > username=user > > > > since I had no use for it, but it would obviously be an easy one-liner > > to write (it's just "fill" without the actual fill call). > > I was thinking the same, except I would have spelled it "git credential > parse" (but ident is fine too). On the perl side, that would allow > getting a credential hash very simply (but it was already simple in > perl, and made useless by your code). I wanted to give it some name that meant "pass-through" rather than just parse, in case we add more magic attributes later. I meant "ident" to be like "mathematical identity", but in the context of a credential tool, it is probably somewhat ambiguous. :) Anyway, the fact that we can just do the parsing as part of the "fill" means we don't need it for now, so I'll leave it until somebody really cares. -Peff