Skip to content
Browse files

Add support for new 0.3 feature subcommands (checkout and pull). Upda…

…te 'feature publish' subcommand completion to only list unpublished features.
  • Loading branch information...
1 parent 3e77edb commit 522c026e4420a191e9eb944e44d678c1be1c9e30 @bobthecow committed Aug 5, 2010
Showing with 10 additions and 2 deletions.
  1. +10 −2 git-flow-completion.bash
View
12 git-flow-completion.bash
@@ -75,18 +75,26 @@ _git_flow ()
__git_flow_feature ()
{
- local subcommands="list start finish publish track diff rebase"
+ local subcommands="list start finish publish track diff rebase checkout pull"
local subcommand="$(__git_find_subcommand "$subcommands")"
if [ -z "$subcommand" ]; then
__gitcomp "$subcommands"
return
fi
case "$subcommand" in
- finish|publish|diff|rebase)
+ pull)
+ __gitcomp "$(__git_remotes)"
+ return
+ ;;
+ checkout|finish|diff|rebase)
__gitcomp "$(__git_flow_list_features)"
return
;;
+ publish)
+ __gitcomp "$(comm -23 <(__git_flow_list_features) <(__git_flow_list_remote_features))"
+ return
+ ;;
track)
__gitcomp "$(__git_flow_list_remote_features)"
return

0 comments on commit 522c026

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