aboutsummaryrefslogtreecommitdiffstats
path: root/userdiff.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2023-02-27 10:08:56 -0800
committerJunio C Hamano <gitster@pobox.com>2023-02-27 10:08:56 -0800
commitece8dc97ae53d08247aa283b6f299e3e5b2669db (patch)
tree3af9afced2453f047c1e45f9d9e4639e89dec0d9 /userdiff.h
parentMerge branch 'pw/rebase-i-validate-labels-early' (diff)
parentdiff: teach diff to read algorithm from diff driver (diff)
downloadgit-ece8dc97ae53d08247aa283b6f299e3e5b2669db.tar.gz
git-ece8dc97ae53d08247aa283b6f299e3e5b2669db.zip
Merge branch 'jc/diff-algo-attribute'
The "diff" drivers specified by the "diff" attribute attached to paths can now specify which algorithm (e.g. histogram) to use. * jc/diff-algo-attribute: diff: teach diff to read algorithm from diff driver diff: consolidate diff algorithm option parsing
Diffstat (limited to 'userdiff.h')
-rw-r--r--userdiff.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/userdiff.h b/userdiff.h
index aee91bc77e..24419db697 100644
--- a/userdiff.h
+++ b/userdiff.h
@@ -14,6 +14,7 @@ struct userdiff_funcname {
struct userdiff_driver {
const char *name;
const char *external;
+ const char *algorithm;
int binary;
struct userdiff_funcname funcname;
const char *word_regex;