mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-21 04:04:59 +00:00
feature<TextDiffView>: supports discard changes from staged directly
This commit is contained in:
parent
1149c768d3
commit
096fd6cb22
3 changed files with 66 additions and 2 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue