Added the display of the author of a commit in the source tree.

This commit is contained in:
Loic d'Anterroches
2008-11-07 14:32:22 +01:00
parent c797e6c7c3
commit c113c11da5
4 changed files with 5 additions and 4 deletions

View File

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

View File

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