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 'resolved:mark files with conflicts as resolved'
19 'rm:delete a file from the repository'
20 'show:show the changes introduced by a given commit'
21 'stage:stage changes in a file for commit'
22 'status:show files with staged and unstaged changes'
23 'switch:change the current working branch'
24 'track:query and configure remote branch tracking'
25 'uncommit:reverse the actions of the last commit'
26 'unstage:unstage changes in a file'
27 'update:update the current branch relative to its tracking branch'
28 'version:report the current version of yap'
31 _describe
-t commands
'zsh command' commands
&& ret
=0
36 '*:file:_files' && ret
=0
41 '*:file:_files' && ret
=0
46 '*:file:_files' && ret
=0
51 '*:file:_files' && ret
=0
56 '*:file:_files' && ret
=0
61 '*:file:_files' && ret
=0
66 '*:branch:__git_heads' && ret
=0
71 '-d[delete a branch]:local branch' \
72 '*:branch:__git_heads' && ret
=0
76 if (( CURRENT
== 2 )); then
81 curcontext
="${curcontext%:*:*}:yap-$words[1]:"
82 _call_function ret _yap-
$words[1]