[Top][All Lists]

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

[PATCH] Added --include-exclude-dirs option

From: Clifford Wolf
Subject: [PATCH] Added --include-exclude-dirs option
Date: Thu, 21 Jun 2007 08:39:12 +0200
User-agent: Mutt/1.5.11


the attached patch adds a new grep option: --include-exclude-dirs

Usually, when grepping recusively over a directory tree, the
include/exclude patterns are only applied to file but not directory names.

In some cases that is pretty anoying, e.g. when grepping in a subversion
working copy where one usually does not want to recurse into the .svn
directories. With this patch applied one can do that using:

        grep --exclude=.svn --include-exclude-dirs FOOBAR .

I'd really appreciate if you would apply this in CVS and so include it in
the next release.

The patch is against grep-2.5.1a and not CVS HEAD. I hope that does not

 - clifford

To understand recursion, you must first understand recursion.

Attachment: inclexcldirs.patch
Description: Text document

reply via email to

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