fix: input lines may contain several commits

The first commit is always the immediate child, so take only 40 initial characters of the line
This commit is contained in:
Dmitrij D. Czarkoff 2024-11-19 18:38:36 +01:00
parent 88fb754415
commit f3c9690d47
No known key found for this signature in database

View file

@ -19,7 +19,7 @@ namespace SourceGit.Commands
protected override void OnReadline(string line)
{
if (line.Contains(_commit))
_lines.Add(line);
_lines.Add(line.Substring(0, 40));
}
public IEnumerable<string> Result()