]> source.dussan.org Git - jgit.git/commitdiff
[blame] Reset rename detector before computing renames. 18/4118/1
authorKevin Sawicki <kevin@github.com>
Thu, 1 Sep 2011 20:29:43 +0000 (13:29 -0700)
committerKevin Sawicki <kevin@github.com>
Thu, 1 Sep 2011 20:29:43 +0000 (13:29 -0700)
Bug: 354507
Change-Id: I5e9c65a082d9dee1e87536c5cf2a8de75efa6a33
Signed-off-by: Kevin Sawicki <kevin@github.com>
org.eclipse.jgit/src/org/eclipse/jgit/blame/BlameGenerator.java

index 3b8e41eb16321e172e742b9477814ba180155330..5157364e15a2d267b1991a06aa0cae802365ee8c 100644 (file)
@@ -945,6 +945,7 @@ public class BlameGenerator {
 
                treeWalk.setFilter(TreeFilter.ANY_DIFF);
                treeWalk.reset(parent.getTree(), commit.getTree());
+               renameDetector.reset();
                renameDetector.addAll(DiffEntry.scan(treeWalk));
                for (DiffEntry ent : renameDetector.compute()) {
                        if (isRename(ent) && ent.getNewPath().equals(path.getPath()))