Fix bug in commit lines

- we can rely on change id's when establishing commit relationships
This commit is contained in:
Mattias Granlund 2024-05-30 17:44:09 +02:00
parent a4878b234d
commit d9c96e84db

View File

@ -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 {