037b691c199b67e2711eb240fa5c45c58ae25a22
- Author
- Robby Russell <robby@planetargon.com>
- Committer
- Robby Russell <robby@planetargon.com>
- Date
Message
Merge pull request #1665 from bmcorser/patch-1
Alias for commit and commit all with amend
Diff
1diff --git a/plugins/git/git.plugin.zsh b/plugins/git/git.plugin.zsh
2index 154aa6db1a4d686c65be2c4931c40eaac4d6bd8d..15f901f86ce68ca2cd76589a2b0ebd19967e008d 100644
3--- a/plugins/git/git.plugin.zsh
4+++ b/plugins/git/git.plugin.zsh
5@@ -14,8 +14,12 @@ gdv() { git diff -w "$@" | view - }
6 compdef _git gdv=git-diff
7 alias gc='git commit -v'
8 compdef _git gc=git-commit
9+alias gc!='git commit -v --amend'
10+compdef _git gc!=git-commit
11 alias gca='git commit -v -a'
12-compdef _git gca=git-commit
13+compdef _git gc=git-commit
14+alias gca!='git commit -v -a --amend'
15+compdef _git gca!=git-commit
16 alias gco='git checkout'
17 compdef _git gco=git-checkout
18 alias gcm='git checkout master'