差分
このページの2つのバージョン間の差分を表示します。
| 次のリビジョン | 前のリビジョン | ||
| diff [2025/10/20 15:42] – 作成 root | diff [2026/01/29 19:06] (現在) – root | ||
|---|---|---|---|
| 行 1: | 行 1: | ||
| - | <?php | + | ~~NOCACHE~~ |
| - | $repoDir = '/home/alma/rocketa_mvp.git'; | + | <php> |
| - | $commit | + | $repoDir="/home/opc/rocketa.git"; |
| - | $diff = shell_exec(" | + | $commitHash = $_GET[' |
| - | echo "<pre>$diff</ | + | $file = $_GET['file']; |
| + | $diff = shell_exec(" | ||
| + | echo "git -C '/ | ||
| + | $lines | ||
| + | echo "< | ||
| + | foreach ($lines as $line) { | ||
| + | if (str_starts_with($line, | ||
| + | echo '< | ||
| + | } elseif (str_starts_with($line, ' | ||
| + | echo '< | ||
| + | } else { | ||
| + | echo htmlspecialchars($line) . " | ||
| + | } | ||
| + | } | ||
| + | echo "</ | ||
| + | </ | ||