Skip to content

Commit 5242804

Browse files
committed
Fix missing git changes due to not reliably present label
1 parent 3f8593d commit 5242804

3 files changed

+4
-3
lines changed

cypher/GitLog/Add_CHANGED_TOGETHER_WITH_relationships_to_git_files.cypher

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22

33
MATCH (global_git_commit:Git:Commit)
44
WITH count(global_git_commit) AS globalCommitCount
5-
MATCH (git_commit:Git:Commit)-[:CONTAINS_CHANGE]->(git_change:Git:Change:Update)-[:UPDATES]->(git_file:Git:File)MATCH (git_repository:Git&Repository)-[:HAS_FILE]->(git_file)
5+
MATCH (git_commit:Git:Commit)-[:CONTAINS_CHANGE]->(git_change:Git:Change)-[:UPDATES]->(git_file:Git:File)
6+
MATCH (git_repository:Git&Repository)-[:HAS_FILE]->(git_file)
67
WHERE git_file.deletedAt IS NULL
78
// Order files to assure, that pairs of distinct files are grouped together (fileA, fileB) without (fileB, fileA)
89
ORDER BY git_commit.sha, git_file.relativePath

cypher/GitLog/List_git_files_that_were_changed_together_all_in_one.cypher

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
MATCH (global_git_commit:Git:Commit)
44
WITH count(global_git_commit) AS globalCommitCount
5-
MATCH (git_commit:Git:Commit)-[:CONTAINS_CHANGE]->(git_change:Git:Change:Update)-[:UPDATES]->(git_file:Git:File)MATCH (git_repository:Git&Repository)-[:HAS_FILE]->(git_file)
5+
MATCH (git_commit:Git:Commit)-[:CONTAINS_CHANGE]->(git_change:Git:Change)-[:UPDATES]->(git_file:Git:File)MATCH (git_repository:Git&Repository)-[:HAS_FILE]->(git_file)
66
MATCH (git_repository:Git&Repository)-[:HAS_FILE]->(git_file)
77
WHERE git_file.deletedAt IS NULL
88
WITH *, git_repository.name + '/' + git_file.relativePath AS filePath

cypher/GitLog/List_git_files_that_were_changed_together_with_another_file_all_in_one.cypher

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
MATCH (global_git_commit:Git:Commit)
44
WITH count(global_git_commit) AS globalCommitCount
5-
MATCH (git_commit:Git:Commit)-[:CONTAINS_CHANGE]->(git_change:Git:Change:Update)-[:UPDATES]->(git_file:Git:File)
5+
MATCH (git_commit:Git:Commit)-[:CONTAINS_CHANGE]->(git_change:Git:Change)-[:UPDATES]->(git_file:Git:File)
66
MATCH (git_repository:Git&Repository)-[:HAS_FILE]->(git_file)
77
WHERE git_file.deletedAt IS NULL
88
WITH *, git_repository.name + '/' + git_file.relativePath AS filePath

0 commit comments

Comments
 (0)