6 'add:add a new file to the repository'
7 'branch:list, create, or delete branches'
8 'cherry-pick:apply the changes in a given commit to the current branch'
9 'clone:make a local copy of an existing repository'
10 'commit:record changes to files as a new commit'
11 'diff:show staged, unstaged, or all uncommitted changes'
12 'fetch:retrieve commits from a remote repository'
13 'history:alter history by dropping or amending commits'
14 'init:turn a directory into a repository'
15 'log:show the changelog for particular versions or files'
16 'merge:merge a branch into the current branch'
17 'plugins:show information about loaded plugins'
18 'point:move the current branch to a different revision'
19 'push:send local commits to a remote repository'
20 'repo:list, add, or delete configured remote repositories'
21 'revert:remove uncommitted changes from a file (*)'
22 'resolved:mark files with conflicts as resolved'
23 'rm:delete a file from the repository'
24 'show:show the changes introduced by a given commit'
25 'stage:stage changes in a file for commit'
26 'status:show files with staged and unstaged changes'
27 'switch:change the current working branch'
28 'track:query and configure remote branch tracking'
29 'uncommit:reverse the actions of the last commit'
30 'unstage:unstage changes in a file'
31 'update:update the current branch relative to its tracking branch'
32 'version:report the current version of yap'
35 _describe
-t commands
'zsh command' commands
&& ret
=0
40 '*:file:_files' && ret
=0
45 '*:file:_files' && ret
=0
50 '*:file:_files' && ret
=0
55 '*:file:_files' && ret
=0
60 '*:file:_files' && ret
=0
65 '*:file:_files' && ret
=0
70 '*:branch:__git_heads' && ret
=0
75 '-d[delete a branch]:local branch' \
76 '*:branch:__git_heads' && ret
=0
81 '(-d)-a[commit all changes]' \
82 '(-a)-d[commit only staged changes]' \
83 '-m[specify commit message]:commit message' && ret
=0
88 '(-u)-d[show only staged changes]' \
89 '(-d)-u[show only unstaged changes]' && ret
=0
93 repos
=( `yap repo | gawk '{print $1}'` )
94 compadd
- "${repos[@]}"
99 '-d[delete a repository]' \
100 ':repo:__yap_repos' \
106 ':repo:__yap_repos' && ret
=0
111 '-r:revision:__git_heads' \
112 '*:files:_files' && ret
=0
117 ':branch:__git_heads' && ret
=0
122 ':repo:__yap_repos' \
123 ':branch:__git_heads' && ret
=0
128 ':repo:__yap_repos' \
129 ':branch:__git_heads' && ret
=0
133 if (( CURRENT
== 2 )); then
138 curcontext
="${curcontext%:*:*}:yap-$words[1]:"
139 _call_function ret _yap-
$words[1]