summaryrefslogtreecommitdiff
path: root/urlmatch.h
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2020-05-05 14:54:29 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2020-05-05 14:54:30 -0700
commit568324f31ba6cec13532e420117d312db65ddd80 (patch)
tree749064792c8d2f6e22e932c165373839cef17803 /urlmatch.h
parentMerge branch 'js/partial-urlmatch-2.17' (diff)
parentSync with js/partial-urlmatch-2.17 (diff)
downloadtgif-568324f31ba6cec13532e420117d312db65ddd80.tar.xz
Merge branch 'js/partial-urlmatch'
The same as js/partial-urlmatch-2.17, built on more recent codebase to avoid unnecessary merge conflicts. * js/partial-urlmatch: credential: handle `credential.<partial-URL>.<key>` again credential: optionally allow partial URLs in credential_from_url_gently()
Diffstat (limited to 'urlmatch.h')
-rw-r--r--urlmatch.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/urlmatch.h b/urlmatch.h
index 2407520731..6ff42f81b0 100644
--- a/urlmatch.h
+++ b/urlmatch.h
@@ -59,6 +59,11 @@ struct urlmatch_config {
* specificity rules) than existing.
*/
int (*select_fn)(const struct urlmatch_item *found, const struct urlmatch_item *existing);
+ /*
+ * An optional callback to allow e.g. for partial URLs; it shall
+ * return 1 or 0 depending whether `url` matches or not.
+ */
+ int (*fallback_match_fn)(const char *url, void *cb);
};
int urlmatch_config_entry(const char *var, const char *value, void *cb);