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

Re: gitweb - option to disable rename detection

From
Junio C Hamano <junkio@cox.net>
Date
Aug 16, 2005, 01:21 UTC
Message-ID
<7voe7yr812.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<Pine.LNX.4.58.0508151542290.3553@g5.osdl.org>
Linus Torvalds <torvalds@osdl.org> writes:
> This makes it somewhat more expensive - I was thinking about disabling it 
> in git-diff-tree, since the rename logic already knows how many 
> new/deleted files there are.

That's doable. I'll rig something up on my next GIT day, along with the clean-up for diff option handling which we have postponed for some time. Clearly this would introduce another option to diffcore.

OTOH, you could take totally the opposite avenue and take advantage of the fact that git commit ancestry is immultable. Once commitdiff is made, you do not have to regenerate it but cache it and reuse for the next request. I may be mistaken, but I vaguely recall kernel.org webservers already does something like that.

If you have infinite amount of disk space, you could choose to cache everything, and also prime the cache before any real users ask for a page. Once you go that route, you could even give -C flag for copy detection, with --find-copies-harder which is an ultra expensive option, and nobody would notice.

Previous: Linus TorvaldsNext: Yasushi SHOJI
Message 5 of 6 in “gitweb - option to disable rename detection”
  1. Yasushi SHOJIAug 15, 2005
  2. Linus TorvaldsAug 15, 2005
  3. Yasushi SHOJIAug 15, 2005
  4. Linus TorvaldsAug 15, 2005
  5. Junio C HamanoAug 16, 2005
  6. Yasushi SHOJIAug 16, 2005

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.