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

Re: How to know where a reference name comes from?

From
Junio C Hamano <gitster@pobox.com>
Date
Nov 27, 2008, 09:47 UTC
Message-ID
<7v4p1tbiw0.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<vpqk5ap5xy1.fsf@bauges.imag.fr>
Matthieu Moy <Matthieu.Moy@imag.fr> writes:
> (I ended up doing "strace -e open git rev-parse git-svn", and found
> out I had a .git/git-svn file lying around)

This has been proposed for a couple of times now but I think it might be time to start insisting on a ref directly underneath $GIT_DIR to be in all caps (plus underscore) to avoid issues like this while still allowing traditional MERGE_HEAD, ORIG_HEAD and friends.

Previous: Matthieu Moy
Message 2 of 2 in “How to know where a reference name comes from?”
  1. Matthieu MoyNov 27, 2008
  2. Junio C HamanoNov 27, 2008

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.