Didn't work.
このコミットが含まれているのは:
コミット
870210671f
|
@ -31,7 +31,12 @@
|
|||
}
|
||||
|
||||
function get_commit_msg (string $fp) : string {
|
||||
return date("Y/m/d H:i:s", filemtime($fp.".git/COMMIT_EDITMSG")).": ".trim(file_get_contents($fp.".git/COMMIT_EDITMSG"));
|
||||
$res = file_get_contents($fp.".git/logs/refs/heads/".git_branch($fp));
|
||||
$res = explode("\n", $res);
|
||||
$res = $res[array_key_last($res)-1];
|
||||
$res = strstr($res, "commit: ");
|
||||
$res = str_replace("commit: ", "", $res);
|
||||
return trim($res);
|
||||
}
|
||||
|
||||
function ls (string $fp = "") : array|bool {
|
||||
|
|
読み込み中…
新しいイシューから参照