git icon indicating copy to clipboard operation
git copied to clipboard

Adds git config vars to customize behavior of git bash completion

Open sagemintblue opened this issue 8 years ago • 2 comments

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>.

sagemintblue avatar Nov 27 '16 03:11 sagemintblue

I think this repo is dead. I'd close this PR

jakesylvestre avatar May 30 '18 01:05 jakesylvestre

CLA assistant check
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.

CLAassistant avatar Nov 17 '19 00:11 CLAassistant