@@ -13,10 +13,16 @@ public string Title
1313 get ;
1414 }
1515
16- public string FileModeChange
16+ public int OldMode
1717 {
18- get => _fileModeChange ;
19- private set => SetProperty ( ref _fileModeChange , value ) ;
18+ get => _oldMode ;
19+ private set => SetProperty ( ref _oldMode , value ) ;
20+ }
21+
22+ public int NewMode
23+ {
24+ get => _newMode ;
25+ private set => SetProperty ( ref _newMode , value ) ;
2026 }
2127
2228 public bool IsTextDiff
@@ -53,7 +59,8 @@ public DiffContext(string repo, Models.DiffOption option, DiffContext previous =
5359 _isTextDiff = previous . _isTextDiff ;
5460 _isIgnoreWhitespaceVisible = previous . _isIgnoreWhitespaceVisible ;
5561 _content = previous . _content ;
56- _fileModeChange = previous . _fileModeChange ;
62+ _oldMode = previous . _oldMode ;
63+ _newMode = previous . _newMode ;
5764 _unifiedLines = previous . _unifiedLines ;
5865 _info = previous . _info ;
5966 }
@@ -243,7 +250,8 @@ private void LoadContent()
243250
244251 Dispatcher . UIThread . Post ( ( ) =>
245252 {
246- FileModeChange = latest . FileModeChange ;
253+ OldMode = latest . OldMode ;
254+ NewMode = latest . NewMode ;
247255
248256 if ( rs is Models . TextDiff cur )
249257 {
@@ -334,7 +342,8 @@ public bool IsSame(Info other)
334342 private readonly int _entireFileLines = 999999999 ;
335343 private readonly string _repo ;
336344 private readonly Models . DiffOption _option = null ;
337- private string _fileModeChange = string . Empty ;
345+ private int _oldMode = 0 ;
346+ private int _newMode = 0 ;
338347 private int _unifiedLines = 4 ;
339348 private bool _isTextDiff = false ;
340349 private bool _isIgnoreWhitespaceVisible = true ;
0 commit comments