diff options
author | Robby Russell <robby@planetargon.com> | 2014-08-31 11:44:57 -0700 |
---|---|---|
committer | Robby Russell <robby@planetargon.com> | 2014-08-31 11:44:57 -0700 |
commit | 58491bda2111e3094bdf78b64a683affd7b65b7e (patch) | |
tree | d1705019d2934545f60b1e714cc3a31c42fff916 | |
parent | 74e7510a7d3254356520c087e2a29bc9b3e802dd (diff) | |
parent | 45abe764e55a6c201acb3bf8e602f53e5d5574f0 (diff) | |
download | zsh-58491bda2111e3094bdf78b64a683affd7b65b7e.tar.gz zsh-58491bda2111e3094bdf78b64a683affd7b65b7e.tar.bz2 zsh-58491bda2111e3094bdf78b64a683affd7b65b7e.zip |
Merge pull request #3012 from abstractj/git-gpg-signatures
Inclusion of aliases for sign git commits and tags
-rw-r--r-- | plugins/git/git.plugin.zsh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/plugins/git/git.plugin.zsh b/plugins/git/git.plugin.zsh index e2e54ffb6..0c5622c24 100644 --- a/plugins/git/git.plugin.zsh +++ b/plugins/git/git.plugin.zsh @@ -80,6 +80,18 @@ alias grhh='git reset HEAD --hard' alias gclean='git reset --hard && git clean -dfx' alias gwc='git whatchanged -p --abbrev-commit --pretty=medium' +# Sign and verify commits with GPG +alias gcs='git commit -S' +compdef _git gcs=git-commit +alias gsps='git show --pretty=short --show-signature' +compdef _git gsps=git-show + +# Sign and verify tags with GPG +alias gts='git tag -s' +compdef _git gts=git-tag +alias gvt='git verify-tag' +compdef _git gvt=git verify-tag + #remove the gf alias #alias gf='git ls-files | grep' |