mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-21 12:15:00 +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
|
@ -5,10 +5,10 @@ namespace SourceGit.Commands
|
|||
{
|
||||
public static class Discard
|
||||
{
|
||||
public static void All(string repo)
|
||||
public static void All(string repo, bool includeIgnored)
|
||||
{
|
||||
new Restore(repo).Exec();
|
||||
new Clean(repo).Exec();
|
||||
new Clean(repo, includeIgnored).Exec();
|
||||
}
|
||||
|
||||
public static void Changes(string repo, List<Models.Change> changes)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue