mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-23 13:14:59 +00:00
enhance: use restore
instead of reset
to discard changes (#76)
This commit is contained in:
parent
60a4d21ce7
commit
8378f018b1
2 changed files with 10 additions and 3 deletions
|
@ -5,6 +5,13 @@ namespace SourceGit.Commands
|
|||
{
|
||||
public class Restore : Command
|
||||
{
|
||||
public Restore(string repo)
|
||||
{
|
||||
WorkingDirectory = repo;
|
||||
Context = repo;
|
||||
Args = "restore . --source=HEAD --staged --worktree --recurse-submodules";
|
||||
}
|
||||
|
||||
public Restore(string repo, List<string> files, string extra)
|
||||
{
|
||||
WorkingDirectory = repo;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue