mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-06-22 10:55:00 +00:00
feature: git command logs
Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
parent
928a0ad3c5
commit
8b39df32cc
101 changed files with 1040 additions and 573 deletions
|
@ -65,12 +65,17 @@ namespace SourceGit.ViewModels
|
|||
_repo.SetWatcherEnabled(false);
|
||||
ProgressDescription = _changes == null ? "Discard all local changes ..." : $"Discard total {_changes.Count} changes ...";
|
||||
|
||||
var log = _repo.CreateLog("Discard all");
|
||||
Use(log);
|
||||
|
||||
return Task.Run(() =>
|
||||
{
|
||||
if (Mode is DiscardAllMode all)
|
||||
Commands.Discard.All(_repo.FullPath, all.IncludeIgnored);
|
||||
Commands.Discard.All(_repo.FullPath, all.IncludeIgnored, log);
|
||||
else
|
||||
Commands.Discard.Changes(_repo.FullPath, _changes);
|
||||
Commands.Discard.Changes(_repo.FullPath, _changes, log);
|
||||
|
||||
log.Complete();
|
||||
|
||||
CallUIThread(() =>
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue