GNU bug report logs -
#66806
30.0.50; [PATCH] 'project-find-regexp' passes Git submodules to the search program
Previous Next
Reported by: Jim Porter <jporterbugs <at> gmail.com>
Date: Sun, 29 Oct 2023 05:37:02 UTC
Severity: normal
Tags: patch
Found in version 30.0.50
Fixed in version 30.1
Done: Dmitry Gutov <dmitry <at> gutov.dev>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
On 29/10/2023 07:36, Jim Porter wrote:
> (Looking at the definition for ripgrep, I'm guessing the "-g '!*/'" is
> the trick for that program, but nothing similar works for ag.)
Actually, it's a failed solution which I copied from the rg's issue
tracker but I didn't test it enough or it broke in some later versions,
and then I put off dealing with it when finally noticed. Maybe it never
worked and only could filter out directories when those are passed with
a trailing slash.
What should work, is adding the argument "--max-depth 0" (stopping the
traversal of passed directories). For ag, the corresponding fix seems to
be "--depth 0", but I haven't tested that in practice.
Anyway, see the other email, which should make it all unnecessary
(unless you have a 3rd party package which has to work with older
project.el too).
This bug report was last modified 1 year and 261 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.