Skip to content

Commit 5c5eb0c

Browse files
idodeclareVladimir Kotal
authored andcommitted
Filter by Renamed (R) for a bit of efficiency
1 parent f1d1f5c commit 5c5eb0c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

opengrok-indexer/src/main/java/org/opengrok/indexer/history/GitRepository.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ Executor getRenamedFilesExecutor(final File file, String sinceRevision) throws I
153153
cmd.add(RepoCommand);
154154
cmd.add("log");
155155
cmd.add("--find-renames=8"); // similarity 80%
156+
cmd.add("--diff-filter=R");
156157
cmd.add("--summary");
157158
cmd.add(ABBREV_LOG);
158159
cmd.add("--name-status");

0 commit comments

Comments
 (0)