srchub

srchub Commit Details


Date:2015-11-15 23:11:23 (9 years 1 month ago)
Author:Natalie Adams
Branch:master
Commit:c23553c16a9fc9a3ce99ae57ae80c4411d548a6c
Parents: 7f1ef7dc403ad7c8bd7389b44886b77772c0662b
Message:Issue 112: take two

Changes:

File differences

indefero/src/IDF/Scm/Git.php
778778
779779
780780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
801806
802807
803808
sprintf($cmd, $skip), $rawlog);
while (count($rawlog) and count($blobs)) {
$rawlog = implode("\n", array_reverse($rawlog));
$newRawLog = substr($rawlog, 0, strrpos(rtrim($rawlog), "\n"));
$rawLogArr = explode("\n", $rawlog);
$lastLine = $rawLogArr[count($rawLogArr) - 1];
$commit = explode(" ", $lastLine)[0];
$fc = $this->getCommit($commit);
foreach(explode("\n", $newRawLog) as $line) {
$sides = explode("\t", $line);
$leftSide = trim($sides[0]);
$rightSide = trim($sides[1]);
$leftSideSplit = explode(" ", $leftSide);
$newHash = sha1($leftSideSplit[3] . $rightSide);
$res[$newHash] = (object) [
"hash" => $newHash,
'date' => $fc->date,
'title' => $fc->title,
'author' => $fc->author
];
unset($blobs[$newHash]);
$tmpRes = [];
foreach(explode("\n", $rawlog) as $line) {
if ($line[0] != ":") { //This is the commit number line
$commit = explode(" ", $line)[0];
$fc = $this->getCommit($commit);
foreach($tmpRes as $r) {
$res[$r["hash"]] = (object) [
"hash" => $r["hash"],
"date" => $fc->date,
"title" => $fc->title,
"author" => $fc->author
];
}
$tmpRes = [];
} else {
$sides = explode("\t", $line);
$leftSide = trim($sides[0]);
$rightSide = trim($sides[1]);
$leftSideSplit = explode(" ", $leftSide);
$newHash = sha1($leftSideSplit[3] . $rightSide);
$tmpRes[$newHash] = [
"hash" => $newHash
];
unset($blobs[$newHash]);
}
}
$rawlog = array();
$skip += 5000;

Archive Download the corresponding diff file

Branches

Number of commits:
Page rendered in 0.05593s using 20 queries.