Unidiff1 files changed, 1 insertions, 1 deletions
|
diff --git a/ui-diff.c b/ui-diff.c index ac9a3fa..4fcf852 100644 --- a/ ui-diff.c+++ b/ ui-diff.c |
|
@@ -132,18 +132,18 @@ void cgit_print_diff(const char *new_rev, const char *old_rev, const char *prefi |
132 | hashclr(old_rev_sha1); |
132 | hashclr(old_rev_sha1); |
133 | |
133 | |
134 | if (!is_null_sha1(old_rev_sha1)) { |
134 | if (!is_null_sha1(old_rev_sha1)) { |
135 | type = sha1_object_info(old_rev_sha1, &size); |
135 | type = sha1_object_info(old_rev_sha1, &size); |
136 | if (type == OBJ_BAD) { |
136 | if (type == OBJ_BAD) { |
137 | cgit_print_error(fmt("Bad object name: %s", sha1_to_hex(old_rev_sha1))); |
137 | cgit_print_error(fmt("Bad object name: %s", sha1_to_hex(old_rev_sha1))); |
138 | return; |
138 | return; |
139 | } |
139 | } |
140 | commit2 = lookup_commit_reference(old_rev_sha1); |
140 | commit2 = lookup_commit_reference(old_rev_sha1); |
141 | if (!commit2 || parse_commit(commit2)) |
141 | if (!commit2 || parse_commit(commit2)) |
142 | cgit_print_error(fmt("Bad commit: %s", sha1_to_hex(old_rev_sha1))); |
142 | cgit_print_error(fmt("Bad commit: %s", sha1_to_hex(old_rev_sha1))); |
143 | } |
143 | } |
144 | html("<table class='diff'>"); |
144 | html("<table summary='diff' class='diff'>"); |
145 | html("<tr><td>"); |
145 | html("<tr><td>"); |
146 | cgit_diff_tree(old_rev_sha1, new_rev_sha1, filepair_cb, prefix); |
146 | cgit_diff_tree(old_rev_sha1, new_rev_sha1, filepair_cb, prefix); |
147 | html("</td></tr>"); |
147 | html("</td></tr>"); |
148 | html("</table>"); |
148 | html("</table>"); |
149 | } |
149 | } |
|