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

Re: log: option "--follow" not the default for a single file?

From
Junio C Hamano <gitster@pobox.com>
Date
Nov 30, 2011, 18:27 UTC
Message-ID
<7vipm1qxdd.fsf@alter.siamese.dyndns.org>
In-Reply-To
<20111130063743.GB5317@sigill.intra.peff.net>
Jeff King <peff@peff.net> writes:
>   2. It can be slower than a regular traversal, since we have to do
>      rename detection whenever we see a deletion. In practice I don't
>      think it is much slower, though (mainly because files don't get
>      moved all that much).

There is no difference between a regular traversal and a follow traversal while the path is still there. When a path disappear during a regular traversal, most likely the remaining traversal will yield nothing but the user has already seen what is there to see. If a follow traversal was in use, the user has seen the same as the regular traversal up to that point, we spend a bit of time in rename detection, and then we start showing the result of the traversal using an updated pathspec. I doubt that "slowness" is an issue here.

Previous: Jeff KingNext: Ralf Thielow
Message 3 of 7 in “log: option "--follow" not the default for a single file?”
  1. Ralf ThielowNov 29, 2011
  2. Jeff KingNov 30, 2011
  3. Junio C HamanoNov 30, 2011
  4. Ralf ThielowNov 30, 2011
  5. Jeff KingDec 1, 2011
  6. Ralf ThielowDec 1, 2011
  7. Jeff KingDec 1, 2011

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.