mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-26 21:17:20 -08:00
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:
parent
88fb754415
commit
f3c9690d47
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ namespace SourceGit.Commands
|
||||||
protected override void OnReadline(string line)
|
protected override void OnReadline(string line)
|
||||||
{
|
{
|
||||||
if (line.Contains(_commit))
|
if (line.Contains(_commit))
|
||||||
_lines.Add(line);
|
_lines.Add(line.Substring(0, 40));
|
||||||
}
|
}
|
||||||
|
|
||||||
public IEnumerable<string> Result()
|
public IEnumerable<string> Result()
|
||||||
|
|
Loading…
Reference in a new issue