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

Re: show refs points to a commit

From
Ralf Thielow <ralf.thielow@googlemail.com>
Date
Jun 8, 2012, 20:10 UTC
Message-ID
<CAN0XMOK=KwHSc0oZZJYBSmqYLG31W0vcA=Qt929uCf7PHsuqiw@mail.gmail.com>
In-Reply-To
<7v4nqld11k.fsf@alter.siamese.dyndns.org>
> "git for-each-ref" gives the mapping from the tip of your refs to
> object names.  We do not keep and give reverse mapping but there
> should be enough information in for-each-refs output to get the
> information yourself, I think.

But you need to grep if you have a big list, don't you? Michael H. points me to: "git log -1 --decorate" which works very well to me.

Thanks
Previous: Junio C Hamano
Message 5 of 5 in “show refs points to a commit”
  1. Ralf ThielowJun 8, 2012
  2. Vincent van RavesteijnJun 8, 2012
  3. Ralf ThielowJun 8, 2012
  4. Junio C HamanoJun 8, 2012
  5. Ralf ThielowJun 8, 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.