git
git copied to clipboard
Adds git config vars to customize behavior of git bash completion
Due to the high volume of changes in Twitter's source monorepo, the existing behavior of git bash completion is bad: By default, completion of git ref names includes patterns refs/heads
, refs/tags
, and refs/remotes
. As of this writing, patterns refs/tags
and refs/remotes
pull in nearly 40,000 ref names in source, making completion in common contexts like git checkout <tab>
unusable.
This diff updates git bash completion of refs to allow customization of behavior via git config variables, as described in doc comment at top of git-completion.bash
file. With these config variables, completion of ref names can be limited to only refs/heads
, dramatically increasing the speed of git checkout <tab>
.
I think this repo is dead. I'd close this PR
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.