rocket-a

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン前のリビジョン
次のリビジョン
前のリビジョン
changed_page [2025/10/20 15:21] rootchanged_page [2026/01/29 19:04] (現在) root
行 1: 行 1:
 ~~NOCACHE~~ ~~NOCACHE~~
 <php> <php>
-$repoDir="/home/alma/rocketa_mvp.git";+$repoDir="/home/opc/rocketa.git";
 $commitHash = $_GET['hash']; $commitHash = $_GET['hash'];
-$files = shell_exec("git --git-dir=" . escapeshellarg($repoDir) . " show --name-status " . escapeshellarg($commitHash));+ 
 +$files = shell_exec("git -C '" . escapeshellarg($repoDir) . "show --name-status -r " . escapeshellarg($commitHash));
 $filesArray = explode("\n", trim($files)); $filesArray = explode("\n", trim($files));
 foreach ($filesArray as $file) { foreach ($filesArray as $file) {
     echo $file . "<br>";     echo $file . "<br>";
 } }
-echo "git --git-dir=" . escapeshellarg($repoDir) . " show --name-status " . escapeshellarg($commitHash);+echo "■diff<br>"; 
 +echo "<pre>"; 
 +$files = shell_exec("git -C '" . escapeshellarg($repoDir) . "' diff-tree  --no-commit-id  --name-only -r " . escapeshellarg($commitHash)); 
 +$filesArray = explode("\n", trim($files)); 
 +foreach ($filesArray as $file) { 
 + echo "<a href='/doku.php?id=diff&file=".($file)."&hash=".$commitHash."'>".$file . "</a><br>"; 
 +
 +echo "</pre>";
 </php> </php>
changed_page.1760941285.txt.gz · 最終更新: by root