Merge branch 'bp/amend-toggle-bind'
authorPratyush Yadav <me@yadavpratyush.com>
Sat, 14 Sep 2019 17:53:12 +0000 (23:23 +0530)
committerPratyush Yadav <me@yadavpratyush.com>
Sat, 14 Sep 2019 17:53:12 +0000 (23:23 +0530)
Toggle amend on and off with the keyboard shortcut "Ctrl+e".

* bp/amend-toggle-bind:
git-gui: add hotkey to toggle "Amend Last Commit"

git-gui.sh
index c345b5c6bedfc98f147547e8ecbdc90f24d2ecae..c75b3e90bcf5bf48b616ede36947f9dfaf4e71ca 100755 (executable)
@@ -3376,10 +3376,16 @@ ttext $ui_comm -background white -foreground black \
        -relief sunken \
        -width $repo_config(gui.commitmsgwidth) -height 9 -wrap none \
        -font font_diff \
+       -xscrollcommand {.vpane.lower.commarea.buffer.frame.sbx set} \
        -yscrollcommand {.vpane.lower.commarea.buffer.frame.sby set}
+${NS}::scrollbar .vpane.lower.commarea.buffer.frame.sbx \
+       -orient horizontal \
+       -command [list $ui_comm xview]
 ${NS}::scrollbar .vpane.lower.commarea.buffer.frame.sby \
+       -orient vertical \
        -command [list $ui_comm yview]
 
+pack .vpane.lower.commarea.buffer.frame.sbx -side bottom -fill x
 pack .vpane.lower.commarea.buffer.frame.sby -side right -fill y
 pack $ui_comm -side left -fill y
 pack .vpane.lower.commarea.buffer.header -side top -fill x