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

Re: get upstream branch

From
PHPeter Harris <git@peter.is-a-geek.org>
Date
Dec 9, 2008, 15:25 UTC
Message-ID
<eaa105840812090725p6158697au2177e0de3d4e5966@mail.gmail.com>
In-Reply-To
<3ab397d0812082052j6a45d05dr1c863aa260826f4@mail.gmail.com>
On Mon, Dec 8, 2008 at 11:52 PM, Jeff Whiteside wrote:
>
> 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.
Would C++ code be a better help?

qgit is somewhat similar to gitk: http://digilander.libero.it/mcostalba/ git://git.kernel.org/pub/scm/qgit/qgit.git git://git.kernel.org/pub/scm/qgit/qgit4.git

Peter Harris
Previous: Sverre Rabbelier
Message 7 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.