Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added missing subcommands for hotfix #25

Merged
merged 1 commit into from Aug 14, 2012
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 9 additions & 1 deletion git-flow-completion.bash
Expand Up @@ -154,7 +154,7 @@ __git_flow_release ()


__git_flow_hotfix () __git_flow_hotfix ()
{ {
local subcommands="list start finish help" local subcommands="list start finish track publish help"
local subcommand="$(__git_find_on_cmdline "$subcommands")" local subcommand="$(__git_find_on_cmdline "$subcommands")"
if [ -z "$subcommand" ]; then if [ -z "$subcommand" ]; then
__gitcomp "$subcommands" __gitcomp "$subcommands"
Expand All @@ -166,6 +166,14 @@ __git_flow_hotfix ()
__gitcomp "$(__git_flow_list_branches 'hotfix')" __gitcomp "$(__git_flow_list_branches 'hotfix')"
return return
;; ;;
publish)
__gitcomp "$(comm -23 <(__git_flow_list_branches 'hotfix') <(__git_flow_list_remote_branches 'hotfix'))"
return
;;
track)
__gitcomp "$(comm -23 <(__git_flow_list_remote_branches 'hotfix') <(__git_flow_list_branches 'hotfix'))"
return
;;
*) *)
COMPREPLY=() COMPREPLY=()
;; ;;
Expand Down