diff options
author | Eitan Adler <lists@eitanadler.com> | 2020-01-19 21:31:56 +0000 |
---|---|---|
committer | Daniel Shahaf <danielsh@apache.org> | 2020-01-19 23:32:37 +0000 |
commit | e626f57613ad2dacd7fe7244f6a33de5c8f03f9e (patch) | |
tree | aa1bd8cb4a5a7669e34bde9b4ae8ce468114e625 | |
parent | 387247864e1689a71fecf9301fc2bbc49e630cb1 (diff) | |
download | zsh-e626f57613ad2dacd7fe7244f6a33de5c8f03f9e.tar.gz zsh-e626f57613ad2dacd7fe7244f6a33de5c8f03f9e.tar.xz zsh-e626f57613ad2dacd7fe7244f6a33de5c8f03f9e.zip |
45332: _git: add completion for git-version
Signed-off-by: Eitan Adler <lists@eitanadler.com>
-rw-r--r-- | ChangeLog | 9 | ||||
-rw-r--r-- | Completion/Unix/Command/_git | 9 |
2 files changed, 17 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog index 2de3f73d5..71bdf9593 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2020-01-19 Eitan Adler <lists@eitanadler.com> + + * 45332: Completion/Unix/Command/_git: add completion for + git-version + +2020-01-19 Mikael Magnusson <mikachu@gmail.com> + + * unposted: _brace_parameter: add missing \ + 2020-01-16 Daniel Shahaf <danielsh@apache.org> * 45305: Test/A01grammar.ztst: Add an XFail test: The diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git index 7f2c206c1..ba1852699 100644 --- a/Completion/Unix/Command/_git +++ b/Completion/Unix/Command/_git @@ -407,6 +407,12 @@ _git-bundle () { return ret } +(( $+functions[_git-version] )) || +_git-version () { + _arguments -S $endopt \ + '--build-options[also print build options]' +} + (( $+functions[_git-check-ignore] )) || _git-check-ignore () { _arguments -s -S $endopt \ @@ -5951,7 +5957,8 @@ _git_commands () { show-branch:'show branches and their commits' verify-commit:'check GPG signature of commits' verify-tag:'check GPG signature of tags' - whatchanged:'show commit-logs and differences they introduce') + whatchanged:'show commit-logs and differences they introduce' + version:'show git version') interaction_commands=( archimport:'import an Arch repository into git' |