Unidiff1 files changed, 4 insertions, 2 deletions
|
|
|
@@ -79,3 +79,3 @@ static void filepair_cb(struct diff_filepair *pair) |
79 | |
79 | |
80 | void cgit_print_patch(char *hex) |
80 | void cgit_print_patch(char *hex, const char *prefix) |
81 | { |
81 | { |
@@ -124,3 +124,5 @@ void cgit_print_patch(char *hex) |
124 | html("---\n"); |
124 | html("---\n"); |
125 | cgit_diff_tree(old_sha1, sha1, filepair_cb, NULL); |
125 | if (prefix) |
| |
126 | htmlf("(limited to '%s')\n\n", prefix); |
| |
127 | cgit_diff_tree(old_sha1, sha1, filepair_cb, prefix); |
126 | html("--\n"); |
128 | html("--\n"); |
|