diff --git a/src/IDF/Scm/Git.php b/src/IDF/Scm/Git.php index 6e2451a..f072a71 100644 --- a/src/IDF/Scm/Git.php +++ b/src/IDF/Scm/Git.php @@ -134,9 +134,11 @@ class IDF_Scm_Git $fc = $this->getCommit($matches[1]); $file->date = $fc->date; $file->log = $fc->title; + $file->author = $fc->author; } else if ($file->type == 'blob') { $file->date = $co->date; $file->log = $co->title; + $file->author = $co->author; // May be wrong in some cases. } $file->fullpath = ($folder) ? $folder.'/'.$file->file : $file->file; $res[] = $file; diff --git a/src/IDF/Scm/Svn.php b/src/IDF/Scm/Svn.php index 4197602..0b5f561 100644 --- a/src/IDF/Scm/Svn.php +++ b/src/IDF/Scm/Svn.php @@ -161,9 +161,8 @@ class IDF_Scm_Svn if ($file['type'] == 'blob') { $file['size'] = (string) $entry->size; } - + $file['author'] = $entry->commit->author; $file['perm'] = ''; - $res[] = (object) $file; } diff --git a/src/IDF/templates/source/git/tree.html b/src/IDF/templates/source/git/tree.html index f1235da..9db8cae 100644 --- a/src/IDF/templates/source/git/tree.html +++ b/src/IDF/templates/source/git/tree.html @@ -35,7 +35,7 @@ {if $file.type == 'blob'} {if isset($file.date)}