I'm looking for a tool, or for suggestions towards a script, that would be able to search a Git repository for files based on both filenames and file contents (
grep-like). It would need to be able to search not just in the currently checked out branch, but through that branch's history as well as in other branches.
The very specific example of a Git repository that I have is a checkout of dspinellis'
unix-history-repo. I often look for historical implementations of things in there, but it's a pain to track down files as I often need to guess what branch I need to be looking at (there are 165 branches in that repository).
Example of thing I would like to do with this tool is to find the
wow command, which may have been an external command or a built-in command in
csh at some point, if it existed as part of some early BSD Unix (if it existed at all). To do this, I would want to search for
wow.* as a filename pattern, and also for files that may at some point have included a
wow C function, across the 165 branches of dspinellis' Git repository.