Indefero

Indefero Commit Details


Date:2010-05-11 02:41:22 (14 years 7 months ago)
Author:Loic d'Anterroches
Branch: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:28ce82c6f6d066065edf216d9385fc811669e7d5
Parents: 641a3b24a5ca42332ec5abc3d2e51454aff96ce0
Message:Improved to sort the Git tags by reverse chronological order.

Changes:

File differences

src/IDF/Scm/Git.php
125125
126126
127127
128
128
129129
130130
131131
......
134134
135135
136136
137
137138
138139
139
140
140
141
142
143
141144
142
145
143146
144147
145148
return $this->cache['tags'];
}
$cmd = Pluf::f('idf_exec_cmd_prefix', '')
.sprintf('GIT_DIR=%s %s tag',
.sprintf('GIT_DIR=%s %s for-each-ref --format="%%(taggerdate:iso)%%(committerdate:iso) %%(objectname) %%(refname)" refs/tags',
escapeshellarg($this->repo),
Pluf::f('git_path', 'git'));
self::exec('IDF_Scm_Git::getTags', $cmd, $out, $return);
$cmd, $return,
implode("\n", $out)));
}
rsort($out);
$res = array();
foreach ($out as $b) {
if (false !== strpos($b, '/')) {
$res[$this->getCommit($b)->commit] = $b;
$elts = explode(' ', $b, 5);
$tag = substr(trim($elts[4]), 10);
if (false !== strpos($tag, '/')) {
$res[$elts[3]] = $b;
} else {
$res[$b] = '';
$res[$tag] = '';
}
}
$this->cache['tags'] = $res;

Archive Download the corresponding diff file

Page rendered in 0.07450s using 13 queries.