diff options
| author | Oliver Kiddle <opk@zsh.org> | 2015-06-18 23:50:59 +0200 |
|---|---|---|
| committer | Oliver Kiddle <opk@zsh.org> | 2015-06-18 23:50:59 +0200 |
| commit | deb2ec7f174df720033e7001be0c8d8f0bd9a9d9 (patch) | |
| tree | 2a1445bfb50f34469bedce39c3a3a92da999aced /Completion/Unix/Command/_git | |
| parent | 35504: complete % placeholders for git log --format (diff) | |
| download | zsh-deb2ec7f174df720033e7001be0c8d8f0bd9a9d9.tar zsh-deb2ec7f174df720033e7001be0c8d8f0bd9a9d9.tar.gz zsh-deb2ec7f174df720033e7001be0c8d8f0bd9a9d9.tar.bz2 zsh-deb2ec7f174df720033e7001be0c8d8f0bd9a9d9.tar.lz zsh-deb2ec7f174df720033e7001be0c8d8f0bd9a9d9.tar.xz zsh-deb2ec7f174df720033e7001be0c8d8f0bd9a9d9.tar.zst zsh-deb2ec7f174df720033e7001be0c8d8f0bd9a9d9.zip | |
35510: use consistent formatting for git subcommands
Diffstat (limited to 'Completion/Unix/Command/_git')
| -rw-r--r-- | Completion/Unix/Command/_git | 116 |
1 files changed, 33 insertions, 83 deletions
diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git index 3e728865b..a44de405c 100644 --- a/Completion/Unix/Command/_git +++ b/Completion/Unix/Command/_git @@ -5023,7 +5023,16 @@ __git_ignore_line_inside_arguments () { (( $+functions[_git_commands] )) || _git_commands () { - local -a main_porcelain_commands + local -a cmdtypes + cmdtypes=( main_porcelain_commands user_commands + third_party_commands ancillary_manipulator_commands + ancillary_interrogator_commands interaction_commands + plumbing_manipulator_commands plumbing_interrogator_commands + plumbing_sync_commands plumbing_sync_helper_commands + plumbing_internal_helper_commands + ) + local -a $cmdtypes + main_porcelain_commands=( add:'add file contents to index' am:'apply patches from a mailbox' @@ -5062,7 +5071,6 @@ _git_commands () { submodule:'initialize, update, or inspect submodules' tag:'create, list, delete or verify tag object signed with GPG') - local -a ancillary_manipulator_commands ancillary_manipulator_commands=( config:'get and set repository or global options' fast-export:'data exporter' @@ -5077,7 +5085,6 @@ _git_commands () { repack:'pack unpacked objects in a repository' replace:'create, list, delete refs to replace objects') - local -a ancillary_interrogator_commands ancillary_interrogator_commands=( blame:'show what revision and author last modified each line of a file' cherry:'find commits not merged upstream' @@ -5095,7 +5102,6 @@ _git_commands () { verify-tag:'check GPG signature of tags' whatchanged:'show commit-logs and differences they introduce') - local -a interaction_commands interaction_commands=( archimport:'import an Arch repository into git' cvsexportcommit:'export a single commit to a CVS checkout' @@ -5107,7 +5113,6 @@ _git_commands () { send-email:'send collection of patches as emails' svn:'bidirectional operation between a Subversion repository and git') |
