X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=combine-diff.c;h=0cf2a830b5dad5c82d8a127cd57c8a8cba195631;hb=80d12c23de4fbddfaee2f9bf7fe809f57d02e171;hp=31ec0c5165fec5e26b14c2b8eb5df4dc2f63604a;hpb=e28a8670a66125aa29d7a5ea10052c0f6824c2ba;p=git.git diff --git a/combine-diff.c b/combine-diff.c index 31ec0c516..0cf2a830b 100644 --- a/combine-diff.c +++ b/combine-diff.c @@ -723,6 +723,18 @@ static void show_patch_diff(struct combine_diff_path *elem, int num_parent, die("early EOF '%s'", elem->path); result[len] = 0; + + /* If not a fake symlink, apply filters, e.g. autocrlf */ + if (is_file) { + struct strbuf buf; + + strbuf_init(&buf, 0); + if (convert_to_git(elem->path, result, len, &buf, safe_crlf)) { + free(result); + result = strbuf_detach(&buf, &len); + result_size = len; + } + } } else { deleted_file: