From c05e622c531ef075e0449114ae3cd403272980a0 Mon Sep 17 00:00:00 2001 From: Justin Hileman Date: Fri, 26 Nov 2010 16:04:05 -0500 Subject: [PATCH] Only autocomplete untracked branches for feature/release tracking. --- git-flow-completion.bash | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/git-flow-completion.bash b/git-flow-completion.bash index b7fbdf1..276c30d 100755 --- a/git-flow-completion.bash +++ b/git-flow-completion.bash @@ -110,7 +110,7 @@ __git_flow_feature () return ;; track) - __gitcomp "$(__git_flow_list_remote_branches 'feature')" + __gitcomp "$(comm -23 <(__git_flow_list_remote_branches 'feature') <(__git_flow_list_branches 'feature'))" return ;; *) @@ -138,7 +138,7 @@ __git_flow_release () return ;; track) - __gitcomp "$(__git_flow_list_remote_branches 'release')" + __gitcomp "$(comm -23 <(__git_flow_list_remote_branches 'release') <(__git_flow_list_branches 'release'))" return ;; *)