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

Re: remote branches, and branch names in general

From
Jeff King <peff@peff.net>
Date
Mar 3, 2009, 09:05 UTC
Message-ID
<20090303090550.GF3627@coredump.intra.peff.net>
In-Reply-To
<200903030958.56150.markus.heidelberg@web.de>
On Tue, Mar 03, 2009 at 09:58:55AM +0100, Markus Heidelberg wrote:
Show 15 quoted lines
> > Yes. I don't know if they are documented anywhere, but the complete
> > lookup order is:
> > 
> >   $ git grep -h -A8 ref_rev_parse_rules refs.c
> >   const char *ref_rev_parse_rules[] = {
> >           "%.*s",
> >           "refs/%.*s",
> >           "refs/tags/%.*s",
> >           "refs/heads/%.*s",
> >           "refs/remotes/%.*s",
> >           "refs/remotes/%.*s/HEAD",
> >           NULL
> >   };
> 
> Documented in git-rev-parse -> specifying revisions.
Oh, indeed. Thanks for pointing it out.

Though I think this may be part of what people mean when they say git documentation sucks. I had no idea where to look for such a thing, and it turns out it is in the manpage for a plumbing command that in theory I should never have to use.

-Peff
Previous: Markus HeidelbergNext: John Dlugosz
Message 5 of 9 in “remote branches, and branch names in general”
  1. John DlugoszMar 2, 2009
  2. Jakub NarebskiMar 3, 2009
  3. Jeff KingMar 3, 2009
  4. Markus HeidelbergMar 3, 2009
  5. Jeff KingMar 3, 2009
  6. John DlugoszMar 3, 2009
  7. Jeff KingMar 3, 2009
  8. Jay SoffianMar 3, 2009
  9. Jeff KingMar 4, 2009

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.