Indefero

Indefero Commit Details


Date:2009-01-17 11:10:55 (15 years 11 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
Commit:61bc7a70b6bacad2533154132df77e1c3226ba94
Parents: 48355417d7135bfc6cdaf4a883c757d79e85174e
Message:Solved most of issue 93 by not requesting diff content most of the time.

Still need to handle the display of a large commit in the individual
commit page.
Changes:

File differences

src/IDF/Scm/Git.php
250250
251251
252252
253
253254
254255
255
256
256257
257
258
259
260
258
259
260
261
262
263
264
265
266
267
268
261269
262270
263271
......
278286
279287
280288
281
282289
283290
284291
* Get commit details.
*
* @param string Commit ('HEAD').
* @param bool Get commit diff (false).
* @return array Changes.
*/
public function getCommit($commit='HEAD')
public function getCommit($commit='HEAD', $getdiff=false)
{
$cmd = sprintf('GIT_DIR=%s git show --date=iso --pretty=format:%s %s',
escapeshellarg($this->repo),
"'".$this->mediumtree_fmt."'",
escapeshellarg($commit));
if ($getdiff) {
$cmd = sprintf('GIT_DIR=%s git show --date=iso --pretty=format:%s %s',
escapeshellarg($this->repo),
"'".$this->mediumtree_fmt."'",
escapeshellarg($commit));
} else {
$cmd = sprintf('GIT_DIR=%s git log -1 --date=iso --pretty=format:%s %s',
escapeshellarg($this->repo),
"'".$this->mediumtree_fmt."'",
escapeshellarg($commit));
}
$out = array();
IDF_Scm::exec($cmd, $out);
$log = array();
return $out[0];
}
/**
* Get latest changes.
*
src/IDF/Views/Source.php
216216
217217
218218
219
219
220220
221221
222222
}
$title = sprintf(__('%s Commit Details'), (string) $request->project);
$page_title = sprintf(__('%s Commit Details - %s'), (string) $request->project, $commit);
$cobject = $scm->getCommit($commit);
$cobject = $scm->getCommit($commit, true);
$rcommit = IDF_Commit::getOrAdd($cobject, $request->project);
$diff = new IDF_Diff($cobject->changes);
$diff->parse();

Archive Download the corresponding diff file

Page rendered in 0.07612s using 14 queries.