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

How to know where a reference name comes from?

From
Matthieu Moy <matthieu.moy@imag.fr>
Date
Nov 27, 2008, 09:18 UTC
Message-ID
<vpqk5ap5xy1.fsf@bauges.imag.fr>
Hi,

I faced a simple problem: on a repository, doing almost anything with the reference "git-svn" complained about ambiguous reference. I know I have a remotes/git-svn branch, but I didn't know what the other reference could be.

I didn't find a command telling me _why_ this "git-svn" was ambiguous. I'd have loved a

$ git rev-parse --all-symbolic-full-names git-svn
or so, but I couldn't find one.

Did I miss anything obvious? (not that the problem was big, I'm just curious).

(I ended up doing "strace -e open git rev-parse git-svn", and found out I had a .git/git-svn file lying around)

Thanks,
-- 
Matthieu
Next: Junio C Hamano
Message 1 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.