{"thread":{"id":"35816","subject":"bash autocompletion for sontrib/subtree?","startedAt":"2014-02-06T17:34:55Z","lastAt":"2014-02-06T17:34:55Z","messageCount":1,"participants":["darx@sent.com"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"234377","messageId":"1391708095.29875.80179001.7F4CC7EB@webmail.messagingengine.com","threadId":"35816","inReplyTo":null,"subject":"bash autocompletion for sontrib/subtree?","fromName":"","fromEmail":"darx@sent.com","sentAt":"2014-02-06T17:34:55Z","receivedAt":"2014-02-06T17:34:55Z","isPatch":false,"sender":{"key":"darx@sent.com","avatar":null},"body":"I've built/installed git from src,\n\n git --version\n  git version 1.9.rc2.15.g89ba81d\n\n& installed/sourced \n\n /etc/bash_completion.d/git-completion.bash\n\nFor all git-core builtins, autocompletion works.\n\nI've also installed contrib/subtree\n\n`git subtree` works, but I get no autocompletion for the command.\n\nI've tried adding/sourcing this script (@\nhttps://github.com/camptocamp/puppet-git-subtree/blob/master/files/bash_completion.sh),\n\n-------------------------\n_git_subtree ()\n{\nlocal cur=\"${COMP_WORDS[COMP_CWORD]}\"\n\nif [ $COMP_CWORD -eq 2 ]; then\n__gitcomp \"add merge pull push split\"\nreturn\nelif [ $COMP_CWORD -eq 3 ]; then\n__gitcomp \"--prefix=\"\nreturn\nfi\n__gitcomp \"$(__git_remotes)\"\n}\n-------------------------\n\nbut still get not subtree autocomplete.\n\nWhat's neede to enable subtree's autocomplete?\n"}]}