fix<Discard>: fix discard with files not only dropped changes selected but also others

This commit is contained in:
leo 2021-04-29 21:22:17 +08:00
parent 30ab8ae954
commit 8f3c2fdc32
4 changed files with 47 additions and 20 deletions

View file

@ -33,7 +33,7 @@ namespace SourceGit.Commands {
public bool Files(List<string> files) {
StringBuilder builder = new StringBuilder();
builder.Append("checkout -qf --");
builder.Append("checkout -f -q --");
foreach (var f in files) {
builder.Append(" \"");
builder.Append(f);