rocket-a

差分

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

この比較画面へのリンク

両方とも前のリビジョン前のリビジョン
次のリビジョン
前のリビジョン
changed_page [2025/10/20 15:27] 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'];
  
行 9: 行 9:
     echo $file . "<br>";     echo $file . "<br>";
 } }
-$files = shell_exec("git -C '" . escapeshellarg($repoDir) . "' diff-tree --no-commit-id  --name-only -r " . 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)); $filesArray = explode("\n", trim($files));
 foreach ($filesArray as $file) { foreach ($filesArray as $file) {
-    echo $file . "<br>";+ echo "<a href='/doku.php?id=diff&file=".($file)."&hash=".$commitHash."'>".$file . "</a><br>";
 } }
 +echo "</pre>";
 </php> </php>
changed_page.1760941633.txt.gz · 最終更新: by root