sourcegit/src/Commands/QueryCommitFullMessage.cs

21 lines
512 B
C#
Raw Normal View History

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();
2024-06-13 18:46:30 -07:00
if (rs.IsSuccess)
return rs.StdOut.TrimEnd();
return string.Empty;
}
}
}