]> source.dussan.org Git - jgit.git/commit
JGit blame very slow for large merge commits that rename files 00/194200/7
authorSimeon Andreev <simeon.danailov.andreev@gmail.com>
Wed, 15 Jun 2022 20:23:43 +0000 (22:23 +0200)
committerAndrey Loskutov <loskutov@gmx.de>
Fri, 1 Jul 2022 14:10:13 +0000 (16:10 +0200)
commit1a364c49ec88e5b2e642dddc743df5ebd7445daf
tree6bde32138b99d188d5586e2437306511975e086c
parentba93cd36d8d642ad448ee864e28e18c6c9b8781c
JGit blame very slow for large merge commits that rename files

Adjusted BlameGenerator to filter rename detection with the blame path.
This reduces the running time of the blame computation significantly,
for repositories with massive commits involving renames.

The filtered rename detection is made (internally) available with:
org.eclipse.jgit.internal.diff.FilteredRenameDetector

Bug: 578900
Change-Id: I6580004e81102d685081b8180da1587a35073d36
Signed-off-by: Simeon Andreev <simeon.danailov.andreev@gmail.com>
org.eclipse.jgit.test/META-INF/MANIFEST.MF
org.eclipse.jgit.test/tst/org/eclipse/jgit/diff/AbstractRenameDetectionTestCase.java [new file with mode: 0644]
org.eclipse.jgit.test/tst/org/eclipse/jgit/diff/FilteredRenameDetectorTest.java [new file with mode: 0644]
org.eclipse.jgit.test/tst/org/eclipse/jgit/diff/RenameDetectorTest.java
org.eclipse.jgit/META-INF/MANIFEST.MF
org.eclipse.jgit/src/org/eclipse/jgit/blame/BlameGenerator.java
org.eclipse.jgit/src/org/eclipse/jgit/internal/diff/FilteredRenameDetector.java [new file with mode: 0644]