From f04c9cc2cd561d233dcbfa96da85c8c44af3b999 Mon Sep 17 00:00:00 2001 From: Julia Beliaeva Date: Mon, 27 Mar 2017 18:07:21 +0300 Subject: [PATCH] [git] set git.diff.renameLimit.infinity=false to deal with git index performance problems On some projects, setting diff.renameLimit to infinity results in git log indexing process to run for several hours and consume a lot of memory. To deal with this problem, we have to turn this option off. Unfortunately, this results in incomplete history for files that were renamed as a part of a large move (>1k files). We have to fix this problem separately in the future. diff.renameLimit=0 was first introduced in de41656b7c156c4640e6fffeeeea020deb127c52 IDEA-170443 (indexing), IDEA-123397 (file history through commits with big renames) --- platform/util/resources/misc/registry.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/util/resources/misc/registry.properties b/platform/util/resources/misc/registry.properties index 44c4f78debf6..0a8a3d087742 100644 --- a/platform/util/resources/misc/registry.properties +++ b/platform/util/resources/misc/registry.properties @@ -851,7 +851,7 @@ git.file.history.full=true git.file.history.full.description=Adds "--full-history --simplify-merges" to git log arguments when retrieving history for a file. \ This may sometimes result in empty merges being shown in the file history. \ However, skipping this arguments hides some side branches if the end result is the same. -git.diff.renameLimit.infinity=true +git.diff.renameLimit.infinity=false git.diff.renameLimit.infinity.description=Sets diff.renameLimit configuration variable to zero. \ Essentially this variable tells Git the maximal size of commit for which perform rename detection.\ Switching this option on may lead to increased memory consumption by a Git process.\