mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-06-22 19:04:59 +00:00
Display lines changed
This commit is contained in:
parent
399bd2f12b
commit
ac57c930cb
6 changed files with 32 additions and 73 deletions
|
@ -31,8 +31,10 @@ namespace SourceGit.Commands
|
|||
|
||||
if (parts.Length >= 2)
|
||||
{
|
||||
_addedLines += int.Parse(parts[0]);
|
||||
_removedLines += int.Parse(parts[1]);
|
||||
bool canParseAdded = int.TryParse(parts[0], out int addedLines);
|
||||
bool canParseRemoved = int.TryParse(parts[1], out int removedLines);
|
||||
if (canParseAdded) _addedLines += addedLines;
|
||||
if (canParseRemoved) _removedLines += removedLines;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue