Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
provide hooks to customize counsel-git-grep behavior on large repos #1470
I hope these (non-breaking) changes are OK. The current solution (du -s) can take from 7 - 24 sec. on a medium-size repo, which already takes so long that it doesn't matter that we limit the minimum input to 3 characters. These changes just provide a customization point for users to change this behavior.
Thanks for merging.
In case anyone is curious, my local change to require 3 chars for counsel-git-grep, regardless of repo size, is to execute the following after 'counsel is loaded (e.g. in use-package's :config stanza):