@matheusbsbs / matheus-bagliano / commits / ed70e4d7db
Fork 0

git-gui: Show/hide "Sign Off" based on nocommitmsg option

If citool --nocommit is invoked we hide the Sign Off features, as the commit message area is not editable. But we really want the selection tied to the message area's editing ability. Suggested-by: Alexander Gavrilov <angavrilov@gmail.com> Signed-off-by: Shawn O. Pearce <spearce@spearce.org>

Shawn O. Pearce committed Sep 26, 2008 at 07:44 UTC ed70e4d7db69a66d833d1efe56606213bab807e1
1 file changed +2 -2
git-gui.sh
+2 -2
@@ -2413,7 +2413,7 @@ if {[is_enabled multicommit] || [is_enabled singlecommit]} {
2413
2414 .mbar.commit add separator
2415
2416 - if {![is_enabled nocommit]} {
2416 + if {![is_enabled nocommitmsg]} {
2417 .mbar.commit add command -label [mc "Sign Off"] \
2418 -command do_signoff \
2419 -accelerator $M1T-S
@@ -2743,7 +2743,7 @@ pack .vpane.lower.commarea.buttons.incall -side top -fill x
2743 lappend disable_on_lock \
2744 {.vpane.lower.commarea.buttons.incall conf -state}
2745
2746 -if {![is_enabled nocommit]} {
2746 +if {![is_enabled nocommitmsg]} {
2747 button .vpane.lower.commarea.buttons.signoff -text [mc "Sign Off"] \
2748 -command do_signoff
2749 pack .vpane.lower.commarea.buttons.signoff -side top -fill x