aboutsummaryrefslogtreecommitdiffstats
path: root/userdiff.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2016-02-26 13:37:15 -0800
committerJunio C Hamano <gitster@pobox.com>2016-02-26 13:37:15 -0800
commit3ed26a44b3415f5761bdab21f823d964c20a2824 (patch)
tree332fe9b5ccddbdec65ab482e7d1100c57355f253 /userdiff.h
parentMerge branch 'jk/no-diff-emit-common' (diff)
parentdiff: clarify textconv interface (diff)
downloadgit-3ed26a44b3415f5761bdab21f823d964c20a2824.tar.gz
git-3ed26a44b3415f5761bdab21f823d964c20a2824.zip
Merge branch 'jk/more-comments-on-textconv'
The memory ownership rule of fill_textconv() API, which was a bit tricky, has been documented a bit better. * jk/more-comments-on-textconv: diff: clarify textconv interface
Diffstat (limited to 'userdiff.h')
-rw-r--r--userdiff.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/userdiff.h b/userdiff.h
index 4a7e78ffbc..2ef0ce5452 100644
--- a/userdiff.h
+++ b/userdiff.h
@@ -23,6 +23,10 @@ int userdiff_config(const char *k, const char *v);
struct userdiff_driver *userdiff_find_by_name(const char *name);
struct userdiff_driver *userdiff_find_by_path(const char *path);
+/*
+ * Initialize any textconv-related fields in the driver and return it, or NULL
+ * if it does not have textconv enabled at all.
+ */
struct userdiff_driver *userdiff_get_textconv(struct userdiff_driver *driver);
#endif /* USERDIFF */