summaryrefslogtreecommitdiff
path: root/plugins/repo
diff options
context:
space:
mode:
authorTuowen Zhao <ztuowen@gmail.com>2022-01-01 02:26:11 -0600
committerTuowen Zhao <ztuowen@gmail.com>2022-01-01 02:26:11 -0600
commit49edbf438ed690c76e6b2af80368c59404cf0167 (patch)
tree129b3adb2f5f39a1329a426a3b7d51ed2c2290c1 /plugins/repo
parent1bc186dabe12b3d01b2257e82f3a104c48b8b3c7 (diff)
parent78c91ccbf99c77bd4d9cdb74279a40776721f66d (diff)
downloadzsh-49edbf438ed690c76e6b2af80368c59404cf0167.tar.gz
zsh-49edbf438ed690c76e6b2af80368c59404cf0167.tar.bz2
zsh-49edbf438ed690c76e6b2af80368c59404cf0167.zip
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'plugins/repo')
-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]" \