Skip to content

Commit

Permalink
Add clean to <TAB>-completions list
Browse files Browse the repository at this point in the history
  • Loading branch information
timothyasp committed Feb 16, 2013
1 parent 09b0f8d commit 2cd2dda
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bash_completion.sh
Expand Up @@ -10,15 +10,15 @@ _git-scripts()
case "$cmd" in
feature)
if [ "$line" = "$cmd $cur" ]; then
words="switch start finish stashes list merge pull status"
words="switch start finish stashes list merge pull status clean"
else
# get branch names minus hotfixes
words="$(git branch -a | tr -d ' *' | grep -v 'hotfix-' | sed 's|remotes/origin/||')"
fi
;;
hotfix)
if [ "$line" = "$cmd $cur" ]; then
words="switch start finish merge list"
words="switch start finish merge list clean"
else
# get hotfix branch names
words="$(git branch -a | tr -d ' *' | grep 'hotfix-' | sed -e 's|remotes/origin/||' -e 's|hotfix-||')"
Expand Down

0 comments on commit 2cd2dda

Please sign in to comment.