From: Andreas Ericsson Date: Fri, 26 Jan 2007 11:10:26 GMT Subject: Re: [PATCH] diff --check: use colour Message-ID: <45B9E1A2.40505@op5.se> In-Reply-To: <17849.17947.645022.282882@lisa.zopyra.com> Bill Lear wrote: > On Friday, January 26, 2007 at 00:41:42 (+0100) Johannes Schindelin writes: >> ... >> The easiest way to find out what it does is to execute: >> >> git log -S--check diff.c > > Hmm, using 1.5.0-rc2, I created a test repo, and did this: > > echo foo > foo > git add foo > git commit -a -m foo > echo bar > foo > git commit -a -m bar > git log -S--check foo > > and nothing happened. > > I did > > git log -S --check foo > > and the thing went off into outer space. Now at over 2 1/2 minutes of > CPU time on my 2 Ghz Opteron box... > > Is it really '-S--check'? > Yes. '-S--check' will start a pickaxe search for the string '--check' in the repository, covering all the history and the likes. It can take quite a long time (even if used properly ;-)), but it's certainly better than having to look manually. -- Andreas Ericsson andreas.ericsson@op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231