aboutsummaryrefslogtreecommitdiff
path: root/src/phorkie/Repository.php
diff options
context:
space:
mode:
authorChristian Weiske <cweiske@cweiske.de>2012-09-20 00:20:12 +0200
committerChristian Weiske <cweiske@cweiske.de>2012-09-20 00:20:12 +0200
commit6dd1eeafade7105c0785340a43877a8d63793892 (patch)
tree6a611be8eb8f2789b45cc0582c865efea4eda582 /src/phorkie/Repository.php
parent25706aedb4adcabaf88f6ce1b944794679d1678d (diff)
downloadphorkie-6dd1eeafade7105c0785340a43877a8d63793892.tar.gz
phorkie-6dd1eeafade7105c0785340a43877a8d63793892.zip
parse logs with commits that have no line changes
Diffstat (limited to 'src/phorkie/Repository.php')
-rw-r--r--src/phorkie/Repository.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/phorkie/Repository.php b/src/phorkie/Repository.php
index 43f2b23..ed07fb5 100644
--- a/src/phorkie/Repository.php
+++ b/src/phorkie/Repository.php
@@ -310,6 +310,13 @@ class Repository
$commit->committerName = $arOutput[$current + 2];
$commit->committerEmail = $arOutput[$current + 3];
+ if (substr($arOutput[$current + 4], 0, 1) != ' ') {
+ //commit without changed lines
+ $arCommits[] = $commit;
+ $current += 4;
+ continue;
+ }
+
$arLineParts = explode(' ', trim($arOutput[$current + 4]));
$commit->filesChanged = $arLineParts[0];
$commit->linesAdded = $arLineParts[3];