Skip to content
Browse files

Added support for completion of 'support' command.

  • Loading branch information...
1 parent e1ce64d commit 88a698798b93cd820ee913325e93ec462d48e3ea Milan Mitrović committed Nov 18, 2011
Showing with 21 additions and 1 deletion.
  1. +21 −1 git-flow-completion.bash
View
22 git-flow-completion.bash
@@ -47,7 +47,7 @@
_git_flow ()
{
- local subcommands="init feature release hotfix help version"
+ local subcommands="init feature release hotfix support help version"
local subcommand="$(__git_find_on_cmdline "$subcommands")"
if [ -z "$subcommand" ]; then
__gitcomp "$subcommands"
@@ -71,6 +71,10 @@ _git_flow ()
__git_flow_hotfix
return
;;
+ support)
+ __git_flow_support
+ return
+ ;;
*)
COMPREPLY=()
;;
@@ -168,6 +172,22 @@ __git_flow_hotfix ()
esac
}
+__git_flow_support ()
+{
+ local subcommands="list start help"
+ local subcommand="$(__git_find_on_cmdline "$subcommands")"
+ if [ -z "$subcommand" ]; then
+ __gitcomp "$subcommands"
+ return
+ fi
+
+ case "$subcommand" in
+ *)
+ COMPREPLY=()
+ ;;
+ esac
+}
+
__git_flow_prefix ()
{
case "$1" in

0 comments on commit 88a6987

Please sign in to comment.
Something went wrong with that request. Please try again.