summaryrefslogtreecommitdiffabout
path: root/ui-diff.c
Unidiff
Diffstat (limited to 'ui-diff.c') (more/less context) (ignore whitespace changes)
-rw-r--r--ui-diff.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/ui-diff.c b/ui-diff.c
index 0bd9ade..b6486f1 100644
--- a/ui-diff.c
+++ b/ui-diff.c
@@ -115,17 +115,16 @@ static void run_diff(const unsigned char *sha1, const unsigned char *sha2)
115 xdl_diff(&file1, &file2, &diff_params, &emit_params, &emit_cb); 115 xdl_diff(&file1, &file2, &diff_params, &emit_params, &emit_cb);
116} 116}
117 117
118 118
119 119
120void cgit_print_diff(const char *old_hex, const char *new_hex) 120void cgit_print_diff(const char *old_hex, const char *new_hex)
121{ 121{
122 unsigned char sha1[20], sha2[20]; 122 unsigned char sha1[20], sha2[20];
123 123
124 get_sha1(old_hex, sha1); 124 get_sha1(old_hex, sha1);
125 get_sha1(new_hex, sha2); 125 get_sha1(new_hex, sha2);
126 126
127 html("<h2>diff</h2>\n");
128 html("<table class='diff'><tr><td>"); 127 html("<table class='diff'><tr><td>");
129 run_diff(sha1, sha2); 128 run_diff(sha1, sha2);
130 html("</td></tr></table>"); 129 html("</td></tr></table>");
131} 130}