f7f487c42666adfe7b94ebed4714ed212ed22cb9

Author
Ben Marshall-Corser <benmarshallcorser@gmail.com>
Committer
Ben Marshall-Corser <benmarshallcorser@gmail.com>
Date

Message

Alias for commit and commit all with amend

For the lazy and forgetful. Don't worry, a bang is fine in an alias and completion.

:tada:

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'