Indefero

Indefero Commit Details


Date:2008-08-02 02:38:06 (16 years 4 months 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, svn
Commit:4c5bd8d2be673c9d86d8b6b5108d551982491d5c
Parents: fd6031d7f50085b2e42bb539a886fc9175f6fe27
Message:Fixed bug when looking at a commit which is a merge.

When you merge you do not get always a diff of files. This fix correct
that for the case of commit 9a2b8e249acad9f844.
Changes:

File differences

src/IDF/Diff.php
4646
4747
4848
49
4950
5051
5152
$current_chunk = 0;
$lline = 0;
$rline = 0;
$files = array();
foreach ($this->lines as $line) {
if (0 === strpos($line, 'diff --git a')) {
$current_file = self::getFile($line);
src/IDF/templates/source/commit.html
1717
1818
1919
20
2021
2122
2223
......
2627
2728
2829
30
2931
32
3033
3134
3235
33
36
3437
3538
3639
<tr>
<th><strong>{trans 'Message:'}</strong></th><td>{issuetext $cobject.title, $project}{if isset($cobject.full_message)}<br /><br />{issuetext $cobject.full_message, $project}{/if}</td>
</tr>
{if count($diff.files)}
<tr>
<th><strong>{trans 'Files:'}</strong></th>
<td>
{/foreach}
</td>
</tr>
{/if}
</table>
{if count($diff.files)}
<h2>{trans 'Change Details'}</h2>
{$diff.as_html()|safe}
{/if}
{/block}
{block context}
<p><strong>{trans 'Branches:'}</strong><br />

Archive Download the corresponding diff file

Page rendered in 0.10580s using 13 queries.