From 9ea8f98e5c63aaef5da2881504f4d1560ccb0ee3 Mon Sep 17 00:00:00 2001 From: Damien Tardy-Panis Date: Fri, 7 Oct 2016 17:50:00 +0200 Subject: [PATCH] stamp: add zsh autocompletion --- etc/git-extras-completion.zsh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/etc/git-extras-completion.zsh b/etc/git-extras-completion.zsh index 09be7a1..5bb7245 100644 --- a/etc/git-extras-completion.zsh +++ b/etc/git-extras-completion.zsh @@ -337,6 +337,10 @@ _git-squash() { ':branch-name:__gitex_branch_names' } +_git-stamp() { + _arguments -C \ + '(--replace -r)'{--replace,-r}'[replace stamps with same id]' +} _git-summary() { _arguments '--line[summarize with lines rather than commits]' @@ -407,6 +411,7 @@ zstyle ':completion:*:*:git:*' user-commands \ show-tree:'show branch tree of commit history' \ show-unmerged-branches:'show unmerged branches' \ squash:'import changes from a branch' \ + stamp:'stamp the last commit message' \ standup:'recall the commit history' \ summary:'show repository summary' \ sync:'sync local branch with remote branch' \