mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-11-28 22:03:30 +03:00
Fix copiedFromRemoteId
bug
- correctly shows commits as rebased when changeId is missing - setting relatedTo is sufficient, no need to touch `get status()`
This commit is contained in:
parent
de310a203d
commit
98c3f5d310
@ -188,10 +188,7 @@ export class DetailedCommit {
|
||||
|
||||
get status(): CommitStatus {
|
||||
if (this.isIntegrated) return 'integrated';
|
||||
if (
|
||||
(this.isRemote && (!this.relatedTo || this.id === this.relatedTo.id)) ||
|
||||
(this.copiedFromRemoteId && this.relatedTo && this.copiedFromRemoteId === this.relatedTo.id)
|
||||
)
|
||||
if (this.isRemote && (!this.relatedTo || this.id === this.relatedTo.id))
|
||||
return 'localAndRemote';
|
||||
return 'local';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user