@@ -244,7 +244,7 @@ public void SetData(List<Models.Change> changes)
244244 // Just force refresh selected changes.
245245 Dispatcher . UIThread . Invoke ( ( ) =>
246246 {
247- HasUnsolvedConflicts = _cached . Find ( x => x . IsConflict ) != null ;
247+ HasUnsolvedConflicts = _cached . Find ( x => x . IsConflicted ) != null ;
248248
249249 UpdateDetail ( ) ;
250250 UpdateInProgressState ( ) ;
@@ -276,7 +276,7 @@ public void SetData(List<Models.Change> changes)
276276 if ( c . WorkTree != Models . ChangeState . None )
277277 {
278278 unstaged . Add ( c ) ;
279- hasConflict |= c . IsConflict ;
279+ hasConflict |= c . IsConflicted ;
280280 }
281281 }
282282
@@ -378,7 +378,7 @@ public async void UseTheirs(List<Models.Change> changes)
378378
379379 foreach ( var change in changes )
380380 {
381- if ( ! change . IsConflict )
381+ if ( ! change . IsConflicted )
382382 continue ;
383383
384384 if ( change . WorkTree == Models . ChangeState . Deleted )
@@ -420,7 +420,7 @@ public async void UseMine(List<Models.Change> changes)
420420
421421 foreach ( var change in changes )
422422 {
423- if ( ! change . IsConflict )
423+ if ( ! change . IsConflicted )
424424 continue ;
425425
426426 if ( change . Index == Models . ChangeState . Deleted )
@@ -547,17 +547,17 @@ public void AbortMerge()
547547
548548 public void Commit ( )
549549 {
550- DoCommit ( false , false , false ) ;
550+ DoCommit ( false , false ) ;
551551 }
552552
553553 public void CommitWithAutoStage ( )
554554 {
555- DoCommit ( true , false , false ) ;
555+ DoCommit ( true , false ) ;
556556 }
557557
558558 public void CommitWithPush ( )
559559 {
560- DoCommit ( false , true , false ) ;
560+ DoCommit ( false , true ) ;
561561 }
562562
563563 public ContextMenu CreateContextMenuForUnstagedChanges ( )
@@ -594,7 +594,7 @@ public ContextMenu CreateContextMenuForUnstagedChanges()
594594 menu . Items . Add ( openWith ) ;
595595 menu . Items . Add ( new MenuItem ( ) { Header = "-" } ) ;
596596
597- if ( change . IsConflict )
597+ if ( change . IsConflicted )
598598 {
599599 var useTheirs = new MenuItem ( ) ;
600600 useTheirs . Icon = App . CreateMenuIcon ( "Icons.Incoming" ) ;
@@ -949,7 +949,7 @@ public ContextMenu CreateContextMenuForUnstagedChanges()
949949 var hasNonConflicts = false ;
950950 foreach ( var change in _selectedUnstaged )
951951 {
952- if ( change . IsConflict )
952+ if ( change . IsConflicted )
953953 hasConflicts = true ;
954954 else
955955 hasNonConflicts = true ;
@@ -1534,9 +1534,7 @@ public ContextMenu CreateContextForOpenAI()
15341534 var rs = new List < Models . Change > ( ) ;
15351535 foreach ( var c in _cached )
15361536 {
1537- if ( c . Index != Models . ChangeState . None &&
1538- c . Index != Models . ChangeState . Untracked &&
1539- ! c . IsConflict )
1537+ if ( c . Index != Models . ChangeState . None )
15401538 rs . Add ( c ) ;
15411539 }
15421540 return rs ;
@@ -1682,7 +1680,7 @@ private void SetDetail(Models.Change change, bool isUnstaged)
16821680
16831681 if ( change == null )
16841682 DetailContext = null ;
1685- else if ( change . IsConflict && isUnstaged )
1683+ else if ( change . IsConflicted )
16861684 DetailContext = new Conflict ( _repo , this , change ) ;
16871685 else
16881686 DetailContext = new DiffContext ( _repo . FullPath , new Models . DiffOption ( change , isUnstaged ) , _detailContext as DiffContext ) ;
@@ -1764,14 +1762,17 @@ private bool IsChanged(List<Models.Change> old, List<Models.Change> cur)
17641762 {
17651763 if ( old . Count != cur . Count )
17661764 return true ;
1767-
1768- var oldSet = new HashSet < string > ( ) ;
1765+
1766+ var oldMap = new Dictionary < string , Models . Change > ( ) ;
17691767 foreach ( var c in old )
1770- oldSet . Add ( $ " { c . Path } \n { c . WorkTree } \n { c . Index } " ) ;
1768+ oldMap . Add ( c . Path , c ) ;
17711769
17721770 foreach ( var c in cur )
17731771 {
1774- if ( ! oldSet . Contains ( $ "{ c . Path } \n { c . WorkTree } \n { c . Index } ") )
1772+ if ( ! oldMap . TryGetValue ( c . Path , out var o ) )
1773+ return true ;
1774+
1775+ if ( o . Index != c . Index || o . WorkTree != c . WorkTree )
17751776 return true ;
17761777 }
17771778
0 commit comments