▲ | burntsushi 2 days ago | |
Yes, I agree, `git ls-files` can indeed be faster than just `rg --files`. On my Chromium checkout:
But the semantics here are important, because ripgrep doesn't only try to approximate `git ls-files`. It also needs to deal with `.rgignore` and `.ignore`. And no git repository state will help there. ripgrep also supports respecting `.gitignore` even when it isn't inside a git repository. |