You can enable plumbing commands, but you will need to provide part of the implementation yourself.
Find the git-completion.sh script that you are using.
In my /users/andrewc/.bashrc I have
# GIT STUFF if [ -f ~/.git-completion.bash ] then . ~/.git-completion.bash fi
So I pull up /users/andrewc/git-completion.bash
Find the __git_list_porcelain_command()) function and comment out the line for update-ref
This will allow update-ref to autocomplete itself. the script does not know how to populate any of the update-ref arguments. It looks like you need to provide an implementation for __git_update_ref to achieve this. I would use a similar command (`__git_branch perhaps) as a template and from there.
Andrew C
source share