mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2025-01-07 02:11:11 +03:00
Fix bug in commit lines
- we can rely on change id's when establishing commit relationships
This commit is contained in:
parent
a4878b234d
commit
d9c96e84db
@ -253,11 +253,7 @@ export const UNKNOWN_COMMITS = Symbol('UnknownCommits');
|
|||||||
export function commitCompare(left: AnyCommit, right: AnyCommit): boolean {
|
export function commitCompare(left: AnyCommit, right: AnyCommit): boolean {
|
||||||
if (left.id == right.id) return true;
|
if (left.id == right.id) return true;
|
||||||
if (left.changeId && right.changeId && left.changeId == right.changeId) return true;
|
if (left.changeId && right.changeId && left.changeId == right.changeId) return true;
|
||||||
|
return false;
|
||||||
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;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export class RemoteHunk {
|
export class RemoteHunk {
|
||||||
|
Loading…
Reference in New Issue
Block a user