Bug in git-completion.bash in __git_heads() function

2017-12-04 Thread Amandeep Gautam
Hello, This is the first time I am sending a bug report here, so if I have not met the criteria please let me know. I found that at: https://github.com/git/git/blob/master/contrib/completion/git-completion.bash#L371, the usage of refname:strip=2 generates error: fatal: unknown refname:

git-completion.bash: Show list of local branches instead of refs for git checkout

2017-12-04 Thread Amandeep Gautam
Hello, I am using git-completion.bash and when I try to checkout a branch by typing git checkout on the prompt, I get the following: FETCH_HEAD FETCH ORIG_FETCH Will it not be more useful if the list of local branches is populated? If it seems like a good idea I will be willing to submit a