travis-ci: do not skip successfully tested trees in debug mode
[git/git.git] / userdiff.h
CommitLineData
be58e70d
JK
1#ifndef USERDIFF_H
2#define USERDIFF_H
3
d9bae1a1
JK
4#include "notes-cache.h"
5
acd00ea0 6struct index_state;
bd7ad45b 7struct repository;
acd00ea0 8
be58e70d
JK
9struct userdiff_funcname {
10 const char *pattern;
11 int cflags;
12};
13
14struct userdiff_driver {
15 const char *name;
16 const char *external;
122aa6f9 17 int binary;
be58e70d 18 struct userdiff_funcname funcname;
80c49c3d 19 const char *word_regex;
9cb92c39 20 const char *textconv;
d9bae1a1
JK
21 struct notes_cache *textconv_cache;
22 int textconv_want_cache;
be58e70d
JK
23};
24
c7534ef4 25int userdiff_config(const char *k, const char *v);
be58e70d 26struct userdiff_driver *userdiff_find_by_name(const char *name);
acd00ea0
NTND
27struct userdiff_driver *userdiff_find_by_path(struct index_state *istate,
28 const char *path);
be58e70d 29
a64e6a44
JK
30/*
31 * Initialize any textconv-related fields in the driver and return it, or NULL
32 * if it does not have textconv enabled at all.
33 */
bd7ad45b
NTND
34struct userdiff_driver *userdiff_get_textconv(struct repository *r,
35 struct userdiff_driver *driver);
3813e690 36
be58e70d 37#endif /* USERDIFF */