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

Re: How to find where a branch was taken from.

From
PGPaul Gardiner <osronline@glidos.net>
Date
Mar 22, 2008, 16:54 UTC
Message-ID
<47E539E0.3030701@glidos.net>
In-Reply-To
<20080322164136.GA7611@coredump.intra.peff.net>
Jeff King wrote:
Show 11 quoted lines
> On Sat, Mar 22, 2008 at 12:12:16PM +0000, Paul Gardiner wrote:
> 
>> Yes, that's exactly what I need too. I need to produce it
>> programatically. I notice gitk displays, for each commit,
>> the branches that include it. If I knew a command for
>> deriving that, I could iterate through HEAD, HEAD~1, HEAD~2...
>> until I see a remote branch.
> 
> How about:
> 
>   git name-rev --refs='refs/remotes/*' $COMMIT
Wow! That's clever.
Thanks,
	Paul.
Previous: Jeff King
Message 12 of 12 in “How to find where a branch was taken from.”
  1. Paul GardinerMar 21, 2008
  2. Junio C HamanoMar 21, 2008
  3. Junio C HamanoMar 21, 2008
  4. Avery PennarunMar 21, 2008
  5. Charles BaileyMar 21, 2008
  6. Avery PennarunMar 21, 2008
  7. Dmitry PotapovMar 21, 2008
  8. Daniel BarkalowMar 21, 2008
  9. J. Bruce FieldsMar 21, 2008
  10. Paul GardinerMar 22, 2008
  11. Jeff KingMar 22, 2008
  12. Paul GardinerMar 22, 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.