Re: [PATCH gitweb] Visually indicating patch size with horizontal bars
- From
Junio C Hamano <junkio@cox.net>
- Date
- Oct 28, 2005, 03:52 UTC
- Message-ID
- <7vr7a6z4bc.fsf@assigned-by-dhcp.cox.net>
- In-Reply-To
- <Pine.LNX.4.64.0510271933140.4664@g5.osdl.org>
Linus Torvalds <torvalds@osdl.org> 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.