From d110fbc300fe32b00a491e6471d5534f4615b87b Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Thu, 1 Sep 2011 13:29:43 -0700 Subject: [PATCH] [blame] Reset rename detector before computing renames. Bug: 354507 Change-Id: I5e9c65a082d9dee1e87536c5cf2a8de75efa6a33 Signed-off-by: Kevin Sawicki --- org.eclipse.jgit/src/org/eclipse/jgit/blame/BlameGenerator.java | 1 + 1 file changed, 1 insertion(+) diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/blame/BlameGenerator.java b/org.eclipse.jgit/src/org/eclipse/jgit/blame/BlameGenerator.java index 3b8e41eb1..5157364e1 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/blame/BlameGenerator.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/blame/BlameGenerator.java @@ -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()))