Skip to content

Commit fb571f4

Browse files
committed
Optimize treemap with files that are often changed with others
1 parent a760f19 commit fb571f4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cypher/GitLog/List_git_files_that_were_changed_together_with_another_file.cypher

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// List git files that where frequently changed with another file. Requires "Add_CHANGED_TOGETHER_WITH_relationships_to_git_files".
22

33
MATCH (firstGitFile:Git&File&!Repository)-[gitChange:CHANGED_TOGETHER_WITH]-(secondGitFile:Git&File&!Repository)
4+
WHERE elementId(firstGitFile) < elementId(secondGitFile)
45
MATCH (gitRepository:Git&Repository)-[:HAS_FILE]->(firstGitFile)
56
UNWIND gitChange.updateCommitHashes AS commitHash
67
WITH gitRepository.name + '/' + firstGitFile.relativePath AS filePath

0 commit comments

Comments
 (0)