GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — php-git/example/patch.php at develop · libgit2/php-git Expand file tree/ Copy pathpatch.phpMore file actions 13 lines (12 loc) · 487 Bytes / Copy pathpatch.phpFile metadata and controls13 lines (12 loc) · 487 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 <?php $repo = git_repository_open("."); $tree = git_tree_lookup($repo, "e14ccb8e18d632d78ce2f0aeb06597a03f42b237"); $diff = git_diff_tree_to_workdir($repo, $tree, git_diff_options_init()); $payload = array(); $patch = git_patch_from_diff($diff, 1); git_patch_print($patch, function($diff_delta, $diff_hunk, $diff_line, $payload){ if ($diff_line['origin'] == "-" || $diff_line['origin'] == "+") { echo $diff_line['origin']; } echo $diff_line['content']; }, $payload); |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |