mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-11-01 13:13:21 -07:00
20 lines
512 B
C#
20 lines
512 B
C#
namespace SourceGit.Commands
|
|
{
|
|
public class QueryCommitFullMessage : Command
|
|
{
|
|
public QueryCommitFullMessage(string repo, string sha)
|
|
{
|
|
WorkingDirectory = repo;
|
|
Context = repo;
|
|
Args = $"show --no-show-signature --pretty=format:%B -s {sha}";
|
|
}
|
|
|
|
public string Result()
|
|
{
|
|
var rs = ReadToEnd();
|
|
if (rs.IsSuccess)
|
|
return rs.StdOut.TrimEnd();
|
|
return string.Empty;
|
|
}
|
|
}
|
|
}
|