Code

git-gui: Automatically refresh tracking branches when needed
authorShawn O. Pearce <spearce@spearce.org>
Thu, 5 Jul 2007 06:23:53 +0000 (02:23 -0400)
committerShawn O. Pearce <spearce@spearce.org>
Mon, 9 Jul 2007 01:12:55 +0000 (21:12 -0400)
commitba1964be26b8b9e3441591257a2c87f5811d6b50
tree75beedcb2e8fe66ff9bd7cf688a2b2417cabc99e
parent7cf044266779d69d3a16322b4d505bc87267a005
git-gui: Automatically refresh tracking branches when needed

If the user is creating a new local branch and has selected to use
a tracking branch as the starting revision they probably want to
make sure they are using the absolute latest version available of
that branch.

We now offer a checkbox "Fetch Tracking Branch" (on by default)
that instructs git-gui to run git-fetch on just that one branch
before resolving the branch name into a commit SHA-1 and making
(or updating) the local branch.

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