]> git.ipfire.org Git - thirdparty/git.git/blob - userdiff.h
git-submodule.sh: shorten submodule SHA-1s using rev-parse
[thirdparty/git.git] / userdiff.h
1 #ifndef USERDIFF_H
2 #define USERDIFF_H
3
4 #include "notes-cache.h"
5
6 struct index_state;
7
8 struct userdiff_funcname {
9 const char *pattern;
10 int cflags;
11 };
12
13 struct userdiff_driver {
14 const char *name;
15 const char *external;
16 int binary;
17 struct userdiff_funcname funcname;
18 const char *word_regex;
19 const char *textconv;
20 struct notes_cache *textconv_cache;
21 int textconv_want_cache;
22 };
23
24 int userdiff_config(const char *k, const char *v);
25 struct userdiff_driver *userdiff_find_by_name(const char *name);
26 struct userdiff_driver *userdiff_find_by_path(struct index_state *istate,
27 const char *path);
28
29 /*
30 * Initialize any textconv-related fields in the driver and return it, or NULL
31 * if it does not have textconv enabled at all.
32 */
33 struct userdiff_driver *userdiff_get_textconv(struct userdiff_driver *driver);
34
35 #endif /* USERDIFF */