git-gui: Maintain remote and source ref for tracking branches
commit79a060e477a743ad49508aec9a491fe1aa7d7c3b
authorShawn O. Pearce <spearce@spearce.org>
Wed, 4 Jul 2007 05:10:41 +0000 (4 01:10 -0400)
committerShawn O. Pearce <spearce@spearce.org>
Mon, 9 Jul 2007 01:12:49 +0000 (8 21:12 -0400)
treed29e07457278131e7f71363641e40200b7677026
parent6f2a3fc812623bc82fb4997adb5a9a547b5dae1a
git-gui: Maintain remote and source ref for tracking branches

In the next change I want to let the user create their local branch
name to match the remote branch name, so that the existing push
dialog can push the branch back up to the remote repository without
needing to do any sort of remapping.  To do that we need to know
exactly what branch name the remote system is using.

So all_tracking_branches returns a list of specifications, where
each specification is itself a list of:

  - local ref name (destination we fetch into)
  - remote name (repository we fetch from)
  - remote ref name (source ref we fetch from)

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
lib/choose_rev.tcl
lib/remote.tcl