git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH 3/4] credential: convert "url" attribute into its parsed subparts

From
Jeff King <peff@peff.net>
Date
Jul 18, 2012, 12:25 UTC
Message-ID
<20120718122555.GA11482@sigill.intra.peff.net>
In-Reply-To
<vpqeho9jlzy.fsf@bauges.imag.fr>
On Wed, Jul 18, 2012 at 02:24:01PM +0200, Matthieu Moy wrote:
Show 14 quoted lines
> Jeff King <peff@peff.net> 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
Previous: Matthieu MoyNext: Jeff King
Message 6 of 14 in “mediawiki/credential cleanups”
  1. 0/4 mediawiki/credential cleanupsJeff King, Jul 18, 2012
  2. 1/4 docs/credential: minor clarity fixupsJeff King, Jul 18, 2012
  3. 2/4 mw-to-git: check blank credential attributes via lengthJeff King, Jul 18, 2012
  4. 3/4 credential: convert "url" attribute into its parsed subpartsJeff King, Jul 18, 2012
  5. Matthieu MoyJul 18, 2012
  6. Jeff KingJul 18, 2012
  7. 4/4 mw-to-git: use git-credential's URL parserJeff King, Jul 18, 2012
  8. Matthieu MoyJul 18, 2012
  9. Jeff KingJul 18, 2012
  10. Matthieu MoyJul 18, 2012
  11. Jeff KingJul 18, 2012
  12. 4/4 mw-to-git: use git-credential's URL parserJeff King, Jul 18, 2012
  13. Matthieu MoyJul 18, 2012
  14. Matthieu MoyJul 18, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.