diff options
| author | Oliver Kiddle <opk@zsh.org> | 2021-08-29 17:12:56 +0200 |
|---|---|---|
| committer | Oliver Kiddle <opk@zsh.org> | 2021-08-29 17:12:56 +0200 |
| commit | 64befeb4ca5bd9ddb7162584585cd9041711ff8c (patch) | |
| tree | ad6f82dd8c4a651e4b799efa194033ef38f0c27e /Completion/Unix/Command | |
| parent | 49319: completion options update (diff) | |
| download | zsh-64befeb4ca5bd9ddb7162584585cd9041711ff8c.tar zsh-64befeb4ca5bd9ddb7162584585cd9041711ff8c.tar.gz zsh-64befeb4ca5bd9ddb7162584585cd9041711ff8c.tar.bz2 zsh-64befeb4ca5bd9ddb7162584585cd9041711ff8c.tar.lz zsh-64befeb4ca5bd9ddb7162584585cd9041711ff8c.tar.xz zsh-64befeb4ca5bd9ddb7162584585cd9041711ff8c.tar.zst zsh-64befeb4ca5bd9ddb7162584585cd9041711ff8c.zip | |
49327: complete for new git maintenance, for-each-repo, sparse-checkout and bugreport commands
Diffstat (limited to 'Completion/Unix/Command')
| -rw-r--r-- | Completion/Unix/Command/_git | 108 |
1 files changed, 106 insertions, 2 deletions
diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git index d27b43098..a82b70e83 100644 --- a/Completion/Unix/Command/_git +++ b/Completion/Unix/Command/_git @@ -641,6 +641,7 @@ _git-clone () { '(-4 --ipv4 -6 --ipv6)'{-6,--ipv6}'[use IPv6 addresses only]' \ '--filter=[object filtering]:filter:_git_rev-list_filters' \ '--remote-submodules[any cloned submodules will use their remote-tracking branch]' \ + '--sparse[initialize the sparse-checkout file to start with only the top-level files]' \ ': :->repository' \ ': :_directories' && ret=0 @@ -1215,6 +1216,46 @@ _git-log () { return ret } +(( $+functions[_git-maintenance] )) || +_git-maintenance() { + local curcontext="$curcontext" state state_descr line ret=1 + local -A opt_args + + _arguments -C \ + ': :->command' \ |
