summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShawn O. Pearce <spearce@spearce.org>2007-07-05 22:15:00 -0400
committerShawn O. Pearce <spearce@spearce.org>2007-07-06 04:01:31 -0400
commit840bcfa7b55dd94bd97a2d19a250f38d9ce80c77 (patch)
tree1408f027586ecfc6389eac18202ae76212982ae8
parentf1e031bbebb8910ef11f1d5d566b357b50050c56 (diff)
downloadgit-840bcfa7b55dd94bd97a2d19a250f38d9ce80c77.tar.xz
git-gui: Bind M1-P to push action
Users often need to be able to push the current branch so that they can publish their recent changes to anyone they are collaborating with on the project. Associating a keyboard action with this will make it easier for keyboard-oriented users to quickly activate the push features. Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
-rwxr-xr-xgit-gui.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/git-gui.sh b/git-gui.sh
index a1cf873e35..c22a431fdb 100755
--- a/git-gui.sh
+++ b/git-gui.sh
@@ -1525,7 +1525,8 @@ if {[is_enabled transport]} {
menu .mbar.push
.mbar.push add command -label {Push...} \
- -command do_push_anywhere
+ -command do_push_anywhere \
+ -accelerator $M1T-P
}
if {[is_MacOSX]} {
@@ -2148,6 +2149,10 @@ if {[is_enabled branch]} {
bind . <$M1B-Key-n> do_create_branch
bind . <$M1B-Key-N> do_create_branch
}
+if {[is_enabled transport]} {
+ bind . <$M1B-Key-p> do_push_anywhere
+ bind . <$M1B-Key-P> do_push_anywhere
+}
bind . <Key-F5> do_rescan
bind . <$M1B-Key-r> do_rescan