weggli-rs / weggli

weggli is a fast and robust semantic search tool for C and C++ codebases. It is designed to help security researchers identify interesting functionality in large codebases.
Apache License 2.0
2.32k stars 127 forks source link

A maxdepth option perhaps #18

Closed eriols closed 2 years ago

eriols commented 2 years ago

I have a repo with loads of build repos underneath it that I also get hits for; it'd be nice to be able to filter those out either by a maxdepth option or providing like a do not descend into these names like thing (a la how git does it with pathspec).

felixwilhelm commented 2 years ago

Thanks for trying out weggli.

You can use --exclude to skip certain paths from the search. Right now this is only enforced after iterating through the directories so it does not help a lot if you have large subdirectory trees but I'll fix this in the next days.

Does that solve your issue?

eriols commented 2 years ago

Thanks, I had apparently not read the docs close enough. This works fine for me, just need to avoid having too many repos I want to exclude :).