help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: find-grep-dired: skip .git


From: Sergei Organov
Subject: Re: find-grep-dired: skip .git
Date: Thu, 17 Apr 2014 19:16:19 +0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)

Torsten Bronger <bronger@physik.rwth-aachen.de> writes:
> Hallöchen!
>
> I think my find-grep-dired actions lose a lot of time in .git
> subdirs.  Can I tell Emacs somehow to skip them always?

Dunno, but here is an idea. Below is what igrep-find uses not to search in
RCS/CVS/SCCS directories:

find ~/src -type d \( -name RCS -o -name CVS -o -name SCCS \) -prune -o -follow 
-type f \! -name \*~ \! -name \*\,v \! -name s.\* \! -name .\#\* -name 
\*.\[ch\]\* -print0 | xargs -0 -e grep -n  -e PATTERN  /dev/null





reply via email to

[Prev in Thread] Current Thread [Next in Thread]