From: Junio C Hamano Date: Fri, 28 Oct 2005 03:52:07 GMT Subject: Re: [PATCH gitweb] Visually indicating patch size with horizontal bars Message-ID: <7vr7a6z4bc.fsf@assigned-by-dhcp.cox.net> In-Reply-To: Linus Torvalds writes: > Well, if you do full copy detection (and break detection), then > git-diff-tree will actually have effectively calculated the size of the > diff of each file. It just doesn't print them (well, it does a percentage > for the renames/copies). Unbroken in-place edit would never go through diffcore-rename, so that is a gross overstatement. But we could if we wanted to. I do not know how useful it would be, but if somebody wants to do it, I think the best strategy is to do as a separate diffcore backend that comes after diffcore_rename() runs, and do the similarity estimator only on filepairs that rename/copy did not touch.