author | Shawn O. Pearce <spearce@spearce.org> | |
Wed, 30 May 2007 15:27:49 +0000 (11:27 -0400) | ||
committer | Shawn O. Pearce <spearce@spearce.org> | |
Wed, 30 May 2007 23:34:40 +0000 (19:34 -0400) | ||
commit | 905d9c9653a7dc324a1c6fbf883a1b9bcdc6e5bf | |
tree | dbfe5e13e842e641a4d8f61e5748fe270a2ea69d | tree | snapshot |
parent | ea75ee3598ab6f8d0828f8cc6ec3d4a5f8d66813 | commit | diff |
git-gui: Allow creating a branch when none exists
If the user has no branches at all (their refs/heads/ is empty)
and they are on a detached HEAD we have a valid repository but
there are no branches to populate into the branch pulldown in
the create branch dialog. Instead of erroring out we can skip
that part of the dialog, much like we do with tracking branches
or tags when the user doesn't have any.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
If the user has no branches at all (their refs/heads/ is empty)
and they are on a detached HEAD we have a valid repository but
there are no branches to populate into the branch pulldown in
the create branch dialog. Instead of erroring out we can skip
that part of the dialog, much like we do with tracking branches
or tags when the user doesn't have any.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
lib/branch.tcl | diff | blob | history |