mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-12-12 20:21:02 +01:00
feat(repo): add command completion for repo 2.8 (#9388)
This commit is contained in:
parent
e33bc40351
commit
4491588ac0
1 changed files with 10 additions and 1 deletions
|
@ -114,7 +114,9 @@ _repo()
|
||||||
(start)
|
(start)
|
||||||
_arguments : \
|
_arguments : \
|
||||||
"(-h --help)"{-h,--help}"[Show help]" \
|
"(-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' \
|
':branch name:__repo_new__repo_branch_name' \
|
||||||
':projects:__repo_projects_or_all' \
|
':projects:__repo_projects_or_all' \
|
||||||
&& ret=0
|
&& ret=0
|
||||||
|
@ -143,6 +145,13 @@ _repo()
|
||||||
"(-h --help)"{-h,--help}"[Show help]" \
|
"(-h --help)"{-h,--help}"[Show help]" \
|
||||||
&& ret=0
|
&& ret=0
|
||||||
;;
|
;;
|
||||||
|
(stage)
|
||||||
|
_arguments : \
|
||||||
|
"(-h --help)"{-h,--help}"[Show help]" \
|
||||||
|
"(-i --interactive)"{-i,--interactive}"[use interactive staging]" \
|
||||||
|
':projects:__repo_projects' \
|
||||||
|
&& ret=0
|
||||||
|
;;
|
||||||
(status)
|
(status)
|
||||||
_arguments : \
|
_arguments : \
|
||||||
"(-h --help)"{-h,--help}"[Show help]" \
|
"(-h --help)"{-h,--help}"[Show help]" \
|
||||||
|
|
Loading…
Reference in a new issue