diff options
author | Jeff Smith <whydoubt@gmail.com> | 2017-05-24 00:15:10 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-05-24 15:41:50 +0900 |
commit | 3a35cb2ea8ab5d44d6ea6290b7af8a7c8623e4c2 (patch) | |
tree | 0fd1226cd250882b3d38203e7509a880f129fdf4 /diff.h | |
parent | blame: remove unneeded dependency on blob.h (diff) | |
download | tgif-3a35cb2ea8ab5d44d6ea6290b7af8a7c8623e4c2.tar.xz |
blame: move textconv_object with related functions
textconv_object is used in places other than blame.c and should be moved
to a more appropriate location. Other textconv related functions are
located in diff.c so that seems as good a place as any.
Signed-off-by: Jeff Smith <whydoubt@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'diff.h')
-rw-r--r-- | diff.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -385,6 +385,13 @@ extern size_t fill_textconv(struct userdiff_driver *driver, */ extern struct userdiff_driver *get_textconv(struct diff_filespec *one); +/* + * Prepare diff_filespec and convert it using diff textconv API + * if the textconv driver exists. + * Return 1 if the conversion succeeds, 0 otherwise. + */ +extern int textconv_object(const char *path, unsigned mode, const struct object_id *oid, int oid_valid, char **buf, unsigned long *buf_size); + extern int parse_rename_score(const char **cp_p); extern long parse_algorithm_value(const char *value); |