mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-22 12:45:00 +00:00
parent
942f349275
commit
3ca4dc488c
7 changed files with 41 additions and 8 deletions
|
@ -73,21 +73,27 @@ namespace SourceGit.Commands
|
|||
return Exec();
|
||||
}
|
||||
|
||||
public bool Apply(string name)
|
||||
public bool Apply(string name = null)
|
||||
{
|
||||
Args = $"stash apply --index -q {name}";
|
||||
Args = "stash apply -q";
|
||||
if (!string.IsNullOrEmpty(name))
|
||||
Args += $" \"{name}\"";
|
||||
return Exec();
|
||||
}
|
||||
|
||||
public bool Pop(string name)
|
||||
public bool Pop(string name = null)
|
||||
{
|
||||
Args = $"stash pop --index -q {name}";
|
||||
Args = "stash pop -q";
|
||||
if (!string.IsNullOrEmpty(name))
|
||||
Args += $" \"{name}\"";
|
||||
return Exec();
|
||||
}
|
||||
|
||||
public bool Drop(string name)
|
||||
public bool Drop(string name = null)
|
||||
{
|
||||
Args = $"stash drop -q {name}";
|
||||
Args = "stash drop -q";
|
||||
if (!string.IsNullOrEmpty(name))
|
||||
Args += $" \"{name}\"";
|
||||
return Exec();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue