summaryrefslogtreecommitdiff
path: root/diff.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2011-06-29 17:03:10 -0700
committerJunio C Hamano <gitster@pobox.com>2011-06-29 17:03:10 -0700
commitdbae1a13363c45d3f77061f61ca73a0c3ed045cf (patch)
treee20c7222570b55dbcb4ce4cf9bb91ae8149f52ba /diff.c
parent5dc6411edc6ed5d822b65b9f5cf61ab6fe6d3fa8 (diff)
parent0508fe533dfe1b890f6a2d31ca42ba25466e8ff5 (diff)
downloadgit-dbae1a13363c45d3f77061f61ca73a0c3ed045cf.tar.gz
Merge branch 'jk/combine-diff-binary-etc'
* jk/combine-diff-binary-etc: combine-diff: respect textconv attributes refactor get_textconv to not require diff_filespec combine-diff: handle binary files as binary combine-diff: calculate mode_differs earlier combine-diff: split header printing into its own function
Diffstat (limited to 'diff.c')
-rw-r--r--diff.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/diff.c b/diff.c
index 61bedaed57..5dd9049c7d 100644
--- a/diff.c
+++ b/diff.c
@@ -1984,19 +1984,7 @@ struct userdiff_driver *get_textconv(struct diff_filespec *one)
return NULL;
diff_filespec_load_driver(one);
- if (!one->driver->textconv)
- return NULL;
-
- if (one->driver->textconv_want_cache && !one->driver->textconv_cache) {
- struct notes_cache *c = xmalloc(sizeof(*c));
- struct strbuf name = STRBUF_INIT;
-
- strbuf_addf(&name, "textconv/%s", one->driver->name);
- notes_cache_init(c, name.buf, one->driver->textconv);
- one->driver->textconv_cache = c;
- }
-
- return one->driver;
+ return userdiff_get_textconv(one->driver);
}
static void builtin_diff(const char *name_a,