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

show refs points to a commit

From
Ralf Thielow <ralf.thielow@googlemail.com>
Date
Jun 8, 2012, 19:37 UTC
Message-ID
<CAN0XMO+G6K0FZgu35OuuqGEp322vLpakXHXBTPpUQmoex68srA@mail.gmail.com>

After playing around with submodules, I haven't found a builtin way to show refs pointing to a specified commit without using UNIX pipes.

Especially when you working with submodules, it would be very helpful to know which refs points to this commit in order to switch from "detached HEAD" to the branch you can (maybe) work with.

Or did I miss something?
Thanks
Ralf
Next: Vincent van Ravesteijn
Message 1 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.