mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-30 16:44:59 +00:00
20 lines
505 B
C#
20 lines
505 B
C#
namespace SourceGit.Commands
|
|
{
|
|
public class QueryCommitFullMessage : Command
|
|
{
|
|
public QueryCommitFullMessage(string repo, string sha)
|
|
{
|
|
WorkingDirectory = repo;
|
|
Context = repo;
|
|
Args = $"show --no-show-signature --format=%B -s {sha}";
|
|
}
|
|
|
|
public string Result()
|
|
{
|
|
var rs = ReadToEnd();
|
|
if (rs.IsSuccess)
|
|
return rs.StdOut.TrimEnd();
|
|
return string.Empty;
|
|
}
|
|
}
|
|
}
|