summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorTuriok <crd.compte@gmail.com>2021-12-28 20:58:50 +0100
committerGitHub <noreply@github.com>2021-12-28 20:58:50 +0100
commit4491588ac04669c103790c557c6eb4aa40ec0f9e (patch)
tree875be85e2db4d39dac8fc306347b9fe4950b9ea5 /plugins
parente33bc4035171168ea7134d1494f7476cb9d9f352 (diff)
downloadzsh-4491588ac04669c103790c557c6eb4aa40ec0f9e.tar.gz
zsh-4491588ac04669c103790c557c6eb4aa40ec0f9e.tar.bz2
zsh-4491588ac04669c103790c557c6eb4aa40ec0f9e.zip
feat(repo): add command completion for repo 2.8 (#9388)
Diffstat (limited to 'plugins')
-rw-r--r--plugins/repo/_repo11
1 files changed, 10 insertions, 1 deletions
diff --git a/plugins/repo/_repo b/plugins/repo/_repo
index db0ecd14d..2b1f165f1 100644
--- a/plugins/repo/_repo
+++ b/plugins/repo/_repo
@@ -114,7 +114,9 @@ _repo()
(start)
_arguments : \
"(-h --help)"{-h,--help}"[Show help]" \
- "(--all)--all=[begin branch in all projects]"\
+ "(--all)--all[begin branch in all projects]"\
+ "(-r --rev --revision)"{-r,--rev,--revision=}"[point branch at this revision instead of upstream]":branch_or_rev:__repo__repo_branch_or_rev\
+ "(--head)--head[abbreviation for --rev HEAD]"\
':branch name:__repo_new__repo_branch_name' \
':projects:__repo_projects_or_all' \
&& ret=0
@@ -143,6 +145,13 @@ _repo()
"(-h --help)"{-h,--help}"[Show help]" \
&& ret=0
;;
+ (stage)
+ _arguments : \
+ "(-h --help)"{-h,--help}"[Show help]" \
+ "(-i --interactive)"{-i,--interactive}"[use interactive staging]" \
+ ':projects:__repo_projects' \
+ && ret=0
+ ;;
(status)
_arguments : \
"(-h --help)"{-h,--help}"[Show help]" \