]> git.ipfire.org Git - thirdparty/git.git/blobdiff - urlmatch.h
git-prompt: change == to = for zsh's sake
[thirdparty/git.git] / urlmatch.h
index 2407520731f9f0c5250d7bdf5833c56320c10160..6ff42f81b0c1e0fdcdd75511f8b7746da0dccbf7 100644 (file)
@@ -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);