summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorRobby Russell <robby@planetargon.com>2013-04-07 19:04:45 -0700
committerRobby Russell <robby@planetargon.com>2013-04-07 19:04:45 -0700
commit037b691c199b67e2711eb240fa5c45c58ae25a22 (patch)
tree5de7a189520ba98c424d3a32e23e8cc153a5704b /plugins
parent2606772676a23178f24e6f3541e7cc17aa2851d3 (diff)
parentf7f487c42666adfe7b94ebed4714ed212ed22cb9 (diff)
downloadzsh-037b691c199b67e2711eb240fa5c45c58ae25a22.tar.gz
zsh-037b691c199b67e2711eb240fa5c45c58ae25a22.tar.bz2
zsh-037b691c199b67e2711eb240fa5c45c58ae25a22.zip
Merge pull request #1665 from bmcorser/patch-1
Alias for commit and commit all with amend
Diffstat (limited to 'plugins')
-rw-r--r--plugins/git/git.plugin.zsh6
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/git/git.plugin.zsh b/plugins/git/git.plugin.zsh
index 154aa6db1..15f901f86 100644
--- a/plugins/git/git.plugin.zsh
+++ b/plugins/git/git.plugin.zsh
@@ -14,8 +14,12 @@ gdv() { git diff -w "$@" | view - }
compdef _git gdv=git-diff
alias gc='git commit -v'
compdef _git gc=git-commit
+alias gc!='git commit -v --amend'
+compdef _git gc!=git-commit
alias gca='git commit -v -a'
-compdef _git gca=git-commit
+compdef _git gc=git-commit
+alias gca!='git commit -v -a --amend'
+compdef _git gca!=git-commit
alias gco='git checkout'
compdef _git gco=git-checkout
alias gcm='git checkout master'