summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: adcbec1)
raw | patch | inline | side by side (parent: adcbec1)
author | Johannes Sixt <j6t@kdbg.org> | |
Wed, 3 Dec 2008 12:43:20 +0000 (13:43 +0100) | ||
committer | Paul Mackerras <paulus@samba.org> | |
Sun, 21 Dec 2008 23:16:17 +0000 (10:16 +1100) |
Consider this sequence of events:
1. Detach HEAD and fire up gitk
2. Call the context menu on some commit. Notice that the last menu entry
says "Detached HEAD: can't reset" and it is disabled.
3. Now checkout some regular branch (e.g. 'master') using the context menu.
4. Call the context menu again on some commit.
Previously, at this point the last menu entry said "Reset master branch
to here", but it was still disabled. With this fix it is now enabled again.
Signed-off-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
1. Detach HEAD and fire up gitk
2. Call the context menu on some commit. Notice that the last menu entry
says "Detached HEAD: can't reset" and it is disabled.
3. Now checkout some regular branch (e.g. 'master') using the context menu.
4. Call the context menu again on some commit.
Previously, at this point the last menu entry said "Reset master branch
to here", but it was still disabled. With this fix it is now enabled again.
Signed-off-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
gitk | patch | blob | history |
index acda29571de1e73f07801ba91db6c83a027381bd..2feb667d533708cc1d87b7e0b1fc4e800ebcda03 100755 (executable)
--- a/gitk
+++ b/gitk
if {$id ne $nullid && $id ne $nullid2} {
set menu $rowctxmenu
if {$mainhead ne {}} {
- $menu entryconfigure 7 -label [mc "Reset %s branch to here" $mainhead]
+ $menu entryconfigure 7 -label [mc "Reset %s branch to here" $mainhead] -state normal
} else {
$menu entryconfigure 7 -label [mc "Detached head: can't reset" $mainhead] -state disabled
}