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

Re: Fix silly typo in new builtin grep

From
Linus Torvalds <torvalds@osdl.org>
Date
May 16, 2006, 03:32 UTC
Message-ID
<Pine.LNX.4.64.0605152028050.3866@g5.osdl.org>
In-Reply-To
<7vu07qfyj0.fsf@assigned-by-dhcp.cox.net>
On Mon, 15 May 2006, Junio C Hamano wrote:
Show 8 quoted lines
> >
> > (In fact, I would say that doing the above command in just 4 seconds is 
> > damn impressive - it's a large code-base, and v2.6.13 is several months, 
> > and over 20 _thousand_ revisions ago).
> 
> That is a BS praise and you know it ;-).  You do not have delta
> chains that are 20k long, so grepping from the tree 10 revs ago
> and from the tree 20k revs ago would not make a difference.

Oh, I agree. I meant in a "general version-control sense". I doubt a lot of other version-control systems could do it. Git can, exactly because it's whole-file based, and our deltas are limited.

So it's not that "builtin-grep" is wonderful. It's that _git_ is wonderful, and the builtin-grep just shows one of the end results.

That's why we have killer features. To show off.

(That said, git will slow down a tad too - the pack-file access won't be as optimized for an old version tree, and so you'll seek around some more for the cold-cache case).

		Linus
Previous: Junio C Hamano
Message 6 of 6 in “Fix silly typo in new builtin grep”
  1. Linus TorvaldsMay 16, 2006
  2. Linus TorvaldsMay 16, 2006
  3. Morten WelinderMay 16, 2006
  4. Linus TorvaldsMay 16, 2006
  5. Junio C HamanoMay 16, 2006
  6. Linus TorvaldsMay 16, 2006

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.