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 'history:alter history by dropping or amending commits'
13 'init:turn a directory into a repository'
14 'log:show the changelog for particular versions or files'
15 'point:move the current branch to a different revision'
16 'repo:list, add, or delete configured remote repositories'
17 'revert:remove uncommitted changes from a file (*)'
18 'rm:delete a file from the repository'
19 'show:show the changes introduced by a given commit'
20 'stage:stage changes in a file for commit'
21 'status:show files with staged and unstaged changes'
22 'switch:change the current working branch'
23 'uncommit:reverse the actions of the last commit'
24 'unstage:unstage changes in a file'
25 'version:report the current version of yap'
28 _describe
-t commands
'zsh command' commands
&& ret
=0
33 '*:file:_files' && ret
=0
38 '*:file:_files' && ret
=0
43 '*:file:_files' && ret
=0
48 '*:file:_files' && ret
=0
53 '-d[delete a branch]:local branch' \
58 if (( CURRENT
== 2 )); then
63 curcontext
="${curcontext%:*:*}:yap-$words[1]:"
64 _call_function ret _yap-
$words[1]