Indefero

Indefero Commit Details


Date:2011-08-17 13:17:14 (13 years 4 months ago)
Author:Thomas Keller
Branch:develop, feature.diff-whitespace, feature.issue-of-others, feature.search-filter, feature.webrepos, feature.wiki-default-page, release-1.2, release-1.3
Commit:a2c832a130e6063201a627efa9361f0d80f97cd9
Parents: b17de014ec5c0c6431667aa428903e633562d598
Message:Improve the 'parents' parsing for git and ignore any empty parts; also react gracefully if we could not parse the parents for some weird reason.

Changes:

File differences

NEWS.mdtext
3737
3838
3939
40
41
4042
4143
4244
and only display this list if there are any branches available for all SCMs
- If git's author name is not encoded in an UTF-8 compatible encoding, skip the author lookup,
as we have no information what the author string is actually encoded in
- Indefero no longer displays an empty parents paragraph in the commit view for root revisions of
a git repository
## Documentation
src/IDF/Scm/Git.php
646646
647647
648648
649
649
650
651
652
653
650654
651655
652656
$c['full_message'] = IDF_Commit::toUTF8($c['full_message']);
$c['title'] = IDF_Commit::toUTF8($c['title']);
if (isset($c['parents'])) {
$c['parents'] = explode(' ', trim($c['parents']));
$c['parents'] = preg_split('/ /', trim($c['parents']), -1, PREG_SPLIT_NO_EMPTY);
} else {
// this is actually an error state because we should _always_
// be able to parse the parents line with every git version
$c['parents'] = null;
}
$res[] = (object) $c;
return $res;

Archive Download the corresponding diff file

Page rendered in 0.08571s using 13 queries.