Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
gitk: Fix a couple of buglets in the branch head menu items
author
Paul Mackerras
<paulus@samba.org>
Wed, 2 Aug 2006 09:43:34 +0000
(19:43 +1000)
committer
Paul Mackerras
<paulus@samba.org>
Wed, 2 Aug 2006 09:43:34 +0000
(19:43 +1000)
This fixes a silly typo (an extra a) and fixes the condition for
asking for confirmation of removing a branch.
Signed-off-by: Paul Mackerras <paulus@samba.org>
gitk
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
1029915
)
diff --git
a/gitk
b/gitk
index fc65cc0f24fe2022ebb25066ff9a577fb4c5881f..596f605868811df9454f3f889294bd76c8792ffd 100755
(executable)
--- a/
gitk
+++ b/
gitk
@@
-5124,7
+5124,7
@@
proc cobranch {} {
error_popup $err
} else {
notbusy checkout
error_popup $err
} else {
notbusy checkout
- set ma
a
inhead $headmenuhead
+ set mainhead $headmenuhead
if {[info exists headids($oldmainhead)]} {
redrawtags $headids($oldmainhead)
}
if {[info exists headids($oldmainhead)]} {
redrawtags $headids($oldmainhead)
}
@@
-5142,7
+5142,7
@@
proc rmbranch {} {
error_popup "Cannot delete the currently checked-out branch"
return
}
error_popup "Cannot delete the currently checked-out branch"
return
}
- if {$desc_heads($id) eq $id} {
+ if {$desc_heads($id) eq $id
&& $idheads($id) eq [list $head]
} {
# the stuff on this branch isn't on any other branch
if {![confirm_popup "The commits on branch $head aren't on any other\
branch.\nReally delete branch $head?"]} return
# the stuff on this branch isn't on any other branch
if {![confirm_popup "The commits on branch $head aren't on any other\
branch.\nReally delete branch $head?"]} return