Re: [PATCH 3/4] credential: convert "url" attribute into its parsed subparts
- From
Matthieu Moy <matthieu.moy@grenoble-inp.fr>
- Date
- Jul 18, 2012, 12:24 UTC
- Message-ID
- <vpqeho9jlzy.fsf@bauges.imag.fr>
- In-Reply-To
- <20120718120626.GC6726@sigill.intra.peff.net>
Jeff King <peff@peff.net> writes:
Show 7 quoted lines
> $ 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).
-- Matthieu Moy http://www-verimag.imag.fr/~moy/