feature<TextDiffView>: supports discard changes from staged directly

This commit is contained in:
leo 2024-02-29 10:59:59 +08:00
parent 1149c768d3
commit 096fd6cb22
3 changed files with 66 additions and 2 deletions

View file

@ -458,8 +458,6 @@ namespace SourceGit.ViewModels {
}
public void RefreshWorkingCopyChanges() {
_watcher.MarkWorkingCopyRefreshed();
var changes = new Commands.QueryLocalChanges(FullPath, _includeUntracked).Result();
var hasUnsolvedConflict = _workingCopy.SetData(changes);
@ -484,6 +482,8 @@ namespace SourceGit.ViewModels {
HasUnsolvedConflict = hasUnsolvedConflict;
OnPropertyChanged(nameof(WorkingCopyChangesCount));
});
_watcher.MarkWorkingCopyRefreshed();
}
public void RefreshStashes() {