mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-21 04:04:59 +00:00
feature: add an option to clean up ignored files when discard all changes in repo (#531)
This commit is contained in:
parent
a59600ce18
commit
4e57cd50cd
12 changed files with 104 additions and 46 deletions
|
@ -17,7 +17,6 @@ namespace SourceGit.ViewModels
|
|||
public object BasedOn
|
||||
{
|
||||
get;
|
||||
private set;
|
||||
}
|
||||
|
||||
public Models.DealWithLocalChanges PreAction
|
||||
|
@ -105,7 +104,7 @@ namespace SourceGit.ViewModels
|
|||
else if (PreAction == Models.DealWithLocalChanges.Discard)
|
||||
{
|
||||
SetProgressDescription("Discard local changes...");
|
||||
Commands.Discard.All(_repo.FullPath);
|
||||
Commands.Discard.All(_repo.FullPath, false);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue