Open vladak opened 3 years ago
Of course, respective repository code needs to change as well, e.g. https://github.com/oracle/opengrok/blob/1374d7eaf95a0381acb2a576c1d5590d9d2bf276/opengrok-indexer/src/main/java/org/opengrok/indexer/history/GitRepository.java#L620-L628
The renamed file handling in
FileHistoryCache
is needlessly complex. The way it currently works is that the repository in question will place the renamed files into both therenamedFiles
set in theHistory
object as well as the files list in theHistoryEntry
objects. TheFileHistoryCache#store()
then needs to pick them apart: https://github.com/oracle/opengrok/blob/1374d7eaf95a0381acb2a576c1d5590d9d2bf276/opengrok-indexer/src/main/java/org/opengrok/indexer/history/FileHistoryCache.java#L503-L506 and actually reconstruct the set needlessly: https://github.com/oracle/opengrok/blob/1374d7eaf95a0381acb2a576c1d5590d9d2bf276/opengrok-indexer/src/main/java/org/opengrok/indexer/history/FileHistoryCache.java#L526-L536 Thestore()
method should really rely on therenamedFiles
set passed in with theHistory
object.