From d9c96e84db03de95fc782ec5c1e48d9393f0e02e Mon Sep 17 00:00:00 2001 From: Mattias Granlund Date: Thu, 30 May 2024 17:44:09 +0200 Subject: [PATCH] Fix bug in commit lines - we can rely on change id's when establishing commit relationships --- app/src/lib/vbranches/types.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/app/src/lib/vbranches/types.ts b/app/src/lib/vbranches/types.ts index 25c5b61aa..ed5f2be0b 100644 --- a/app/src/lib/vbranches/types.ts +++ b/app/src/lib/vbranches/types.ts @@ -253,11 +253,7 @@ export const UNKNOWN_COMMITS = Symbol('UnknownCommits'); export function commitCompare(left: AnyCommit, right: AnyCommit): boolean { if (left.id == right.id) return true; if (left.changeId && right.changeId && left.changeId == right.changeId) return true; - - if (left.description != right.description) return false; - if (left.author.name != right.author.name) return false; - if (left.author.email != right.author.email) return false; - return true; + return false; } export class RemoteHunk {