git-gui: Don't offer tracking branches if none exist.
commit19e283f5c25b64a55fca099342f9bebddef4e17e
authorShawn O. Pearce <spearce@spearce.org>
Sun, 21 Jan 2007 20:38:09 +0000 (21 15:38 -0500)
committerShawn O. Pearce <spearce@spearce.org>
Mon, 22 Jan 2007 03:47:57 +0000 (21 22:47 -0500)
tree39c874d237bdb7603f5709f600a6c09082ea7062
parent3c2369773929e299002d5e4e7737ea769ddc3bf8
git-gui: Don't offer tracking branches if none exist.

I refactored the common code related to tracking branch listing into
a new procedure all_tracking_branches.  This saves a few lines and
should make the create and delete dialogs easier to maintain.

We now don't offer a radio button to create from a tracking branch
or merge-check a tracking branch if there are no tracking branches
known to git-gui.  This prevents us from creating an empty option
list and letting the user try to shoot themselves in the foot by
asking us to work against an empty initial revision.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
git-gui.sh