bug-gnulib
[Top][All Lists]
Advanced

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

Re: git and grep


From: Mike Frysinger
Subject: Re: git and grep
Date: Mon, 17 Sep 2007 19:20:04 -0400
User-agent: KMail/1.9.7

On Monday 17 September 2007, Bruno Haible wrote:
> What do you use for recursive grepping? Is "grep -r --exclude=dir=.git"
> working fine?

there is no way to filter directories with grep directly ... you have to chain 
find|xargs-grep sort of junk

since git only takes up the toplevel with .git it's a lot easier to avoid than 
svn which has .svn in every dir, so i just dont grep the root dir but rather 
i glob the root stuff

grep -r foo /path/to/coreutils/*
-mike

Attachment: signature.asc
Description: This is a digitally signed message part.


reply via email to

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