Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add zsh completions for `release publish` and `release track`.

  • Loading branch information...
commit 27905111f11b3b1719603d75d6aa79e3f1b1bf9b 1 parent eaee7d2
@soplakanets soplakanets authored
Showing with 13 additions and 1 deletion.
  1. +13 −1 git-flow-completion.zsh
View
14 git-flow-completion.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:Publish release branch to remote.'
+ 'track:Track remote release branch.'
)
_describe -t commands 'git flow release' subcommands
_arguments \
@@ -113,6 +115,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]'
@@ -329,4 +341,4 @@ __git_command_successful () {
return 0
}
-zstyle ':completion:*:*:git:*' user-commands flow:'description for foo'
+zstyle ':completion:*:*:git:*' user-commands flow:'description for foo'
Please sign in to comment.
Something went wrong with that request. Please try again.