Display lines changed

This commit is contained in:
Bernat Borràs Civil 2025-01-19 17:13:15 +01:00
parent 399bd2f12b
commit ac57c930cb
6 changed files with 32 additions and 73 deletions

View file

@ -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;
}
}