File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
apps/desktop/src/lib/vbranches Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 1
1
import 'reflect-metadata' ;
2
+ import { stackingFeature } from '$lib/config/uiFeatureFlags' ;
2
3
import { emptyConflictEntryPresence , type ConflictEntryPresence } from '$lib/conflictEntryPresence' ;
3
4
import { splitMessage } from '$lib/utils/commitMessage' ;
4
5
import { hashCode } from '$lib/utils/string' ;
5
6
import { isDefined , notNull } from '@gitbutler/ui/utils/typeguards' ;
6
7
import { Type , Transform } from 'class-transformer' ;
8
+ import { get } from 'svelte/store' ;
7
9
import type { PullRequest } from '$lib/gitHost/interface/types' ;
8
10
9
11
export type ChangeType =
@@ -242,7 +244,12 @@ export class DetailedCommit {
242
244
243
245
get status ( ) : CommitStatus {
244
246
if ( this . isIntegrated ) return 'integrated' ;
245
- if ( this . remoteCommitId ) return 'localAndRemote' ;
247
+ if ( get ( stackingFeature ) ) {
248
+ if ( this . remoteCommitId ) return 'localAndRemote' ;
249
+ } else {
250
+ if ( this . isRemote && ( ! this . relatedTo || this . id === this . relatedTo . id ) )
251
+ return 'localAndRemote' ;
252
+ }
246
253
return 'local' ;
247
254
}
248
255
You can’t perform that action at this time.
0 commit comments