Weird to find tools that take .gitignore as input but also try to detect a git repository before using it. If the file is present obviously someone wanted it there for something... Why is it the tools job to care about git?
A .gitignore is only semantically meaningful inside a git repository. So it isn't ripgrep's job to add additional semantics to it. .ignore files have been available since the beginning. See docs:https://github.com/BurntSushi/ripgrep/blob/master/GUIDE.md#automatic-filtering …