mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-11-01 13:13:21 -07:00
Adding command to checkout commit
This commit is contained in:
parent
12d7fa6670
commit
8aeb7ed17c
1 changed files with 8 additions and 0 deletions
|
@ -62,6 +62,14 @@ namespace SourceGit.Commands
|
||||||
return Exec();
|
return Exec();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public bool Commit(string commitId, Action<string> onProgress)
|
||||||
|
{
|
||||||
|
Args = $"checkout --detach --progress {commitId}";
|
||||||
|
TraitErrorAsOutput = true;
|
||||||
|
_outputHandler = onProgress;
|
||||||
|
return Exec();
|
||||||
|
}
|
||||||
|
|
||||||
public bool Files(List<string> files)
|
public bool Files(List<string> files)
|
||||||
{
|
{
|
||||||
StringBuilder builder = new StringBuilder();
|
StringBuilder builder = new StringBuilder();
|
||||||
|
|
Loading…
Reference in a new issue