magit-todos icon indicating copy to clipboard operation
magit-todos copied to clipboard

TODOs from nested git repositories are shown

Open whudwl opened this issue 2 years ago • 1 comments

Not sure if this is intended behaviour or a bug. But my .emacs.d is a git repository, and there are a lot of repositories in .emacs.d/straight/repos created by straight.el When I call magit on the .emacs.d folder, magit-todos shows thousands of TODOs from the repos in .emacs.d/straight/repos However, I have realised that switching to git-grep scanner fixes the above issue.
Just wanted to bring this to your attention.

whudwl avatar Apr 24 '22 04:04 whudwl

AFAIK this is a configuration issue. ripgrep should respect .gitignore files, so you'd probably want to add that path so it will be ignored. You can also add the path to magit-todos-exclude-globs in a .dir-locals file in your Emacs directory.

alphapapa avatar Apr 25 '22 22:04 alphapapa