{$proxy},%n {$proxy}date{$proxy}: {$proxy}%ad{$proxy},%n {$proxy}message{$proxy}: {$proxy}%s{$proxy}%n},'",
[
["pipe", "r"],
["pipe", "w"],
["pipe", "w"],
],
$pipes
);
$output = stream_get_contents($pipes[1]);
$string = str_replace(['"', $proxy], ['\\"', '"'], $output);
$string = "[" . rtrim($string, ",") . "]";
$json = json_decode($string, true);
return $json;
}
foreach ($projects as $project) {
chdir($project);
echo $project . "
";
foreach (parse_log() as $commit) {
echo "$commit[message]
";
}
}