git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] diff --check: use colour

From
Andreas Ericsson <ae@op5.se>
Date
Jan 26, 2007, 11:10 UTC
Message-ID
<45B9E1A2.40505@op5.se>
In-Reply-To
<17849.17947.645022.282882@lisa.zopyra.com>
Bill Lear wrote:
Show 26 quoted lines
> 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
Previous: Jeff KingNext: Andy Parkins
Message 9 of 26 in “diff --check: use colour”
  1. diff --check: use colourJohannes Schindelin, Jan 24, 2007
  2. Junio C HamanoJan 24, 2007
  3. Johannes SchindelinJan 25, 2007
  4. Junio C HamanoJan 25, 2007
  5. Bill LearJan 25, 2007
  6. Johannes SchindelinJan 25, 2007
  7. Bill LearJan 26, 2007
  8. Jeff KingJan 26, 2007
  9. Andreas EricssonJan 26, 2007
  10. Andy ParkinsJan 26, 2007
  11. Bill LearJan 26, 2007
  12. Bill LearJan 26, 2007
  13. J. Bruce FieldsJan 26, 2007
  14. Bill LearJan 26, 2007
  15. Bill LearJan 26, 2007
  16. Jeff KingJan 26, 2007
  17. Jakub NarebskiJan 26, 2007
  18. Andy ParkinsJan 26, 2007
  19. Jakub NarebskiJan 26, 2007
  20. Junio C HamanoJan 26, 2007
  21. Johannes SchindelinJan 26, 2007
  22. Junio C HamanoFeb 18, 2007
  23. Johannes SchindelinFeb 18, 2007
  24. Junio C HamanoFeb 18, 2007
  25. Johannes SchindelinFeb 18, 2007
  26. diff --check: use colourJohannes Schindelin, Feb 18, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.