The git autocompletion has show and show-branch but not show-ref. Is this because autocompletion list is not complete? or is there any other reason?
[note] I am using the latest git from source (git version 1.7.5.128.g50d30)
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Come to think of it, that was the asnwer, of course:
Porcelain can be used in various contexts including non-standard (overriden GIT_DIR, GIT_WORK_TREE, temporary directories, locks, whatnot). It would be ill-advised to use completion scripts indiscriminately during such operations, because they would invariably rely on other git subcommands, that may not exactly be valid at that time
This is my theory, people are welcome to supplement that 🙂