浏览代码

Merge pull request #917 from agate/patch-1

added "publish" and "track" command completion for git-flow plugin
Robby Russell 12 年之前
父节点
当前提交
980aaddb03
共有 1 个文件被更改,包括 12 次插入0 次删除
  1. 12 0
      plugins/git-flow/git-flow.plugin.zsh

+ 12 - 0
plugins/git-flow/git-flow.plugin.zsh

@@ -88,6 +88,8 @@ __git-flow-release ()
 				'start:Start a new release branch.'
 				'finish:Finish a release branch.'
 				'list:List all your release branches. (Alias to `git flow release`)'
+				'publish: public'
+				'track: track'
 			)
 			_describe -t commands 'git flow release' subcommands
 			_arguments \
@@ -115,6 +117,16 @@ __git-flow-release ()
 						':version:__git_flow_version_list'
 				;;
 
+				(publish)
+					_arguments \
+						':version:__git_flow_version_list'\
+				;;
+
+				(track)
+					_arguments \
+						':version:__git_flow_version_list'\
+				;;
+
 				*)
 					_arguments \
 						-v'[Verbose (more) output]'