summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4f9d851)
raw | patch | inline | side by side (parent: 4f9d851)
author | Shawn O. Pearce <spearce@spearce.org> | |
Sun, 21 Jan 2007 09:54:01 +0000 (04:54 -0500) | ||
committer | Shawn O. Pearce <spearce@spearce.org> | |
Sun, 21 Jan 2007 09:54:01 +0000 (04:54 -0500) |
Its possible for the user to select a branch for the merge test
(while deleting branches) and also select that branch for deletion.
Doing so would have bypassed our merge check for that branch, as
a branch is always a strict subset of itself. So we will simply
skip over a branch and not delete it if that is the branch which
the user selected for the merge check.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
(while deleting branches) and also select that branch for deletion.
Doing so would have bypassed our merge check for that branch, as
a branch is always a strict subset of itself. So we will simply
skip over a branch and not delete it if that is the branch which
the user selected for the merge check.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
git-gui.sh | patch | blob | history |
diff --git a/git-gui.sh b/git-gui.sh
index c9143973d756df9b0fb16642be71c09b89aac4ff..e79a0ae0732a58ce251d0a826698d3c7c4e1bcf9 100755 (executable)
--- a/git-gui.sh
+++ b/git-gui.sh
set b [$w.list.l get $i]
if {[catch {set o [exec git rev-parse --verify $b]}]} continue
if {$delete_branch_checkhead} {
+ if {$b eq $delete_branch_head} continue
if {[catch {set m [exec git merge-base $o $delete_branch_head]}]} continue
if {$o ne $m} {
lappend not_merged $b