Indefero

Indefero Commit Details

Date:2008-11-07 14:32:22 (6 years 1 month ago)
Author:Loic d'Anterroches
Branch:dev, develop, feature-issue_links, feature.better-home, feature.content-md5, feature.diff-whitespace, feature.download-md5, feature.issue-links, feature.issue-of-others, feature.issue-summary, feature.search-filter, feature.webrepos, feature.wiki-default-page, master, release-1.1, release-1.2, release-1.3
Commit:c113c11da5358046be951ab695c62d0576eda880
Parents: c797e6c7c38c0e244433a259fb298e038355d3cf
Message:Added the display of the author of a commit in the source tree.

Changes:
Msrc/IDF/Scm/Git.php (1 diff)
Msrc/IDF/Scm/Svn.php (1 diff)
Msrc/IDF/templates/source/git/tree.html (1 diff)
Msrc/IDF/templates/source/svn/tree.html (1 diff)

File differences

src/IDF/Scm/Git.php
134134
135135
136136
137
137138
138139
139140
141
140142
141143
142144
$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;
src/IDF/Scm/Svn.php
161161
162162
163163
164
164
165165
166
167166
168167
169168
if ($file['type'] == 'blob') {
$file['size'] = (string) $entry->size;
}
$file['author'] = $entry->commit->author;
$file['perm'] = '';
$res[] = (object) $file;
}
src/IDF/templates/source/git/tree.html
3535
3636
3737
38
38
3939
4040
4141
{if $file.type == 'blob'}
{if isset($file.date)}
<td><span class="smaller">{$file.date|dateago:"wihtout"}</span></td>
<td><span class="smaller">{$file.log}</span></td>
<td><span class="smaller">{$file.author|strip_tags|trim}{trans ':'} {$file.log}</span></td>
{else}<td colspan="2"></td>{/if}
<td>{$file.size|size}</td>{/if}
</tr>
src/IDF/templates/source/svn/tree.html
4747
4848
4949
50
50
5151
5252
5353
<td><a href="{$url}">{$file.file}</a></td>
<td><span class="smaller">{$file.date|dateago:"wihtout"}</span></td>
<td>{$file.rev}</td>
<td{if $file.type != 'blob'} colspan="2"{/if}><span class="smaller">{$file.log|nl2br}</span></td>
<td{if $file.type != 'blob'} colspan="2"{/if}><span class="smaller">{$file.author|strip_tags|trim}{trans ':'} {$file.log|nl2br}</span></td>
{if $file.type == 'blob'}
<td>{$file.size|size}</td>
{/if}

Archive Download the corresponding diff file