git-quiltimport: add --keep-non-patch option
[git.git] / userdiff.h
blobb072bfe89a46efb47c2808b5469bdf1bbfb4cc63
1 #ifndef USERDIFF_H
2 #define USERDIFF_H
4 #include "notes-cache.h"
6 struct index_state;
8 struct userdiff_funcname {
9 const char *pattern;
10 int cflags;
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;
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);
30 * Initialize any textconv-related fields in the driver and return it, or NULL
31 * if it does not have textconv enabled at all.
33 struct userdiff_driver *userdiff_get_textconv(struct userdiff_driver *driver);
35 #endif /* USERDIFF */