Skip to content

Commit a574ed8

Browse files
author
Vladimir Kotal
committed
add comment
1 parent fc992e6 commit a574ed8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

opengrok-indexer/src/test/java/org/opengrok/indexer/history/FileHistoryCacheTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -716,6 +716,8 @@ void testRenamedFileHistoryWithPerPartes(int maxCount) throws Exception {
716716
}
717717
File barFile = new File(repositoryRoot, "bar.txt");
718718

719+
// Looks like the file needs to have content of some length for the add/rm below
720+
// to be detected as file rename by the [J]Git heuristics.
719721
try (FileOutputStream fos = new FileOutputStream(fooFile)) {
720722
fos.write("foo bar foo bar foo bar".getBytes(StandardCharsets.UTF_8));
721723
}

0 commit comments

Comments
 (0)