convert: convert renormalize_buffer to take an index
[gitweb.git] / combine-diff.c
index 2848034fe9c3f3cc1d930347e892cee1cbed4f52..74f723af3d08937a852a572c437605408dc0e30e 100644 (file)
@@ -1053,7 +1053,7 @@ static void show_patch_diff(struct combine_diff_path *elem, int num_parent,
                        if (is_file) {
                                struct strbuf buf = STRBUF_INIT;
 
-                               if (convert_to_git(elem->path, result, len, &buf, safe_crlf)) {
+                               if (convert_to_git(&the_index, elem->path, result, len, &buf, safe_crlf)) {
                                        free(result);
                                        result = strbuf_detach(&buf, &len);
                                        result_size = len;