projects
/
web.mtrack
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
220251a
)
create ojbect if doesnt exist?
author
Alan Knowles
<alan@roojs.com>
Thu, 29 Apr 2021 03:05:44 +0000
(11:05 +0800)
committer
Alan Knowles
<alan@roojs.com>
Thu, 29 Apr 2021 03:05:44 +0000
(11:05 +0800)
MTrack/SCM/Git/Event.php
patch
|
blob
|
history
diff --git
a/MTrack/SCM/Git/Event.php
b/MTrack/SCM/Git/Event.php
index
52a2463
..
3cf011b
100644
(file)
--- a/
MTrack/SCM/Git/Event.php
+++ b/
MTrack/SCM/Git/Event.php
@@
-111,6
+111,10
@@
class MTrack_SCM_Git_Event extends MTrackSCMEvent
$info = preg_split('#\s+#', substr($line ,1), 3);
//print_r($info);
$name = $info[2];
+ if (!isset($ent->files[$name])) {
+ $ent->files[$name] = new stdClass; // ??
+ }
+
$ent->files[$name]->added = $info[0];
$ent->files[$name]->removed = $info[1];
}