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

get upstream branch

From
JWJeff Whiteside <jeff.m.whiteside@gmail.com>
Date
Dec 9, 2008, 04:52 UTC
Message-ID
<3ab397d0812082052j6a45d05dr1c863aa260826f4@mail.gmail.com>
Hi,

Does anyone know how to programmatically get the upstream/parent branch of a branch? I'm trying to write a gui, but looking at gitk's tcl code isn't helping me much.

Thanks,
Whiteside
Next: Junio C Hamano
Message 1 of 7 in “get upstream branch”
  1. Jeff WhitesideDec 9, 2008
  2. Junio C HamanoDec 9, 2008
  3. Jeff KingDec 9, 2008
  4. Junio C HamanoDec 9, 2008
  5. Santi BéjarDec 9, 2008
  6. Sverre RabbelierDec 9, 2008
  7. Peter HarrisDec 9, 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.