git/list[1] front-page[2] threads[3] people[4] search[5] about
 

bash autocompletion for sontrib/subtree?

From
Ddarx@sent.com <darx@sent.com>
Date
Feb 6, 2014, 17:34 UTC
Message-ID
<1391708095.29875.80179001.7F4CC7EB@webmail.messagingengine.com>
I've built/installed git from src,
 git --version
  git version 1.9.rc2.15.g89ba81d
& installed/sourced 
 /etc/bash_completion.d/git-completion.bash
For all git-core builtins, autocompletion works.
I've also installed contrib/subtree
`git subtree` works, but I get no autocompletion for the command.

I've tried adding/sourcing this script (@ https://github.com/camptocamp/puppet-git-subtree/blob/master/files/bash_completion.sh),

------------------------- _git_subtree () { local cur="${COMP_WORDS[COMP_CWORD]}"

if [ $COMP_CWORD -eq 2 ]; then __gitcomp "add merge pull push split" return elif [ $COMP_CWORD -eq 3 ]; then __gitcomp "--prefix=" return fi __gitcomp "$(__git_remotes)" } -------------------------

but still get not subtree autocomplete.
What's neede to enable subtree's autocomplete?
Message 1 of 1 in “bash autocompletion for sontrib/subtree?”
  1. darx@sent.comFeb 6, 2014

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.