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

Re: Finding the name of the parent branch?

From
TKThomas Koch <thomas.koch@ymc.ch>
Date
Jan 30, 2009, 14:26 UTC
Message-ID
<200901301526.24566.thomas.koch@ymc.ch>
In-Reply-To
<a2633edd0901300256k2ad7530elcaca5cdc30c17534@mail.gmail.com>
Am Friday 30 January 2009 11:56:12 schrieb Pascal Obry:
Show 18 quoted lines
> I want to find the name of the parent branch in a script. What is the best
> way?
>
>                          o---o---o---C
>                          /
>                     o---o---o---B
>                    /
>            ---o---o---o---o---o---A
>
> For B I want to get A and for C I want to get B.
>
> All this can be found in gitk, but from a script I did not found a
> good solution.
>
> Any idea?
>
> Thanks.
> Pascal.
Isn't your problem solved by topgit?
-- 
Thomas Koch, YMC AG, http://www.ymc.ch
Phone: +41 (0)71 / 508 24 86
Previous: Michael J GruberNext: Pascal Obry
Message 10 of 11 in “Finding the name of the parent branch?”
  1. Pascal ObryJan 30, 2009
  2. Santi BéjarJan 30, 2009
  3. Pascal ObryJan 30, 2009
  4. Santi BéjarJan 30, 2009
  5. Pascal ObryJan 30, 2009
  6. Santi BéjarJan 30, 2009
  7. Pascal ObryJan 30, 2009
  8. Santi BéjarJan 30, 2009
  9. Michael J GruberJan 30, 2009
  10. Thomas KochJan 30, 2009
  11. Pascal ObryJan 30, 2009

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.