4491588ac04669c103790c557c6eb4aa40ec0f9e

Author
Turiok <crd.compte@gmail.com>
Committer
GitHub <noreply@github.com>
Date

Message

feat(repo): add command completion for repo 2.8 (#9388)

Diff

 1diff --git a/plugins/repo/_repo b/plugins/repo/_repo
 2index db0ecd14d2de58052bafc39ac975225a86bc134f..2b1f165f1ba8250e9965ae7e99a6198b15ec1dee 100644
 3--- a/plugins/repo/_repo
 4+++ b/plugins/repo/_repo
 5@@ -114,7 +114,9 @@ _repo()
 6         (start)
 7           _arguments : \
 8                      "(-h --help)"{-h,--help}"[Show help]" \
 9-                     "(--all)--all=[begin branch in all projects]"\
10+                     "(--all)--all[begin branch in all projects]"\
11+                     "(-r --rev --revision)"{-r,--rev,--revision=}"[point branch at this revision instead of upstream]":branch_or_rev:__repo__repo_branch_or_rev\
12+                     "(--head)--head[abbreviation for --rev HEAD]"\
13                     ':branch name:__repo_new__repo_branch_name' \
14                     ':projects:__repo_projects_or_all' \
15                     && ret=0
16@@ -143,6 +145,13 @@ _repo()
17                      "(-h --help)"{-h,--help}"[Show help]" \
18                     && ret=0
19           ;;
20+        (stage)
21+          _arguments : \
22+                     "(-h --help)"{-h,--help}"[Show help]" \
23+                     "(-i --interactive)"{-i,--interactive}"[use interactive staging]" \
24+                    ':projects:__repo_projects' \
25+                    && ret=0
26+          ;;
27         (status)
28           _arguments : \
29                      "(-h --help)"{-h,--help}"[Show help]" \