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

Re: [PATCH] don't mention index refreshing side effect in git-status docs

From
Jeff King <peff@peff.net>
Date
Dec 9, 2007, 08:42 UTC
Message-ID
<20071209084217.GA2377@coredump.intra.peff.net>
In-Reply-To
<7vhciss1ww.fsf@gitster.siamese.dyndns.org>
On Sun, Dec 09, 2007 at 12:33:19AM -0800, Junio C Hamano wrote:
Show 8 quoted lines
> Jeff King <peff@peff.net> writes:
> 
> > If there is some desire to document the side effect, I think we should
> > at least remove the mention of speeding up git-diff (which is just wrong
> > now).
> 
> Why is it "just wrong"?  Having to squelch the false hits and to run
> auto-refresh are both unnecessary overhead if your index is fresh.

I mean that this is not a useful technique for speeding up git-diff anymore (assuming you have not tinkered with autorefreshindex, in which case I assume you know what you are doing and don't need this tip).

Did you think I meant "there is no speedup with autorefreshindex off", or are you arguing that even with the new diff behavior there is still a speedup in "git status; git diff" over just "git status"?

-Peff
Previous: Junio C HamanoNext: Jonathan del Strother
Message 3 of 5 in “don't mention index refreshing side effect in git-status docs”
  1. don't mention index refreshing side effect in git-status docsJeff King, Dec 9, 2007
  2. Junio C HamanoDec 9, 2007
  3. Jeff KingDec 9, 2007
  4. Jonathan del StrotherDec 9, 2007
  5. Junio C HamanoDec 9, 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.