]> git.ipfire.org Git - thirdparty/git.git/blobdiff - builtin/mktag.c
fsck.c: refactor and rename common config callback
[thirdparty/git.git] / builtin / mktag.c
index 41a399a69e4c08d3ab16274b7e8523e8a96ee3c6..23c4b8763fa18aeb1d92e4d71ce14c7186cc7a27 100644 (file)
@@ -14,11 +14,6 @@ static int option_strict = 1;
 
 static struct fsck_options fsck_options = FSCK_OPTIONS_STRICT;
 
-static int mktag_config(const char *var, const char *value, void *cb)
-{
-       return fsck_config_internal(var, value, cb, &fsck_options);
-}
-
 static int mktag_fsck_error_func(struct fsck_options *o,
                                 const struct object_id *oid,
                                 enum object_type object_type,
@@ -93,7 +88,7 @@ int cmd_mktag(int argc, const char **argv, const char *prefix)
        fsck_options.error_func = mktag_fsck_error_func;
        fsck_set_msg_type(&fsck_options, "extraheaderentry", "warn");
        /* config might set fsck.extraHeaderEntry=* again */
-       git_config(mktag_config, NULL);
+       git_config(git_fsck_config, &fsck_options);
        if (fsck_tag_standalone(NULL, buf.buf, buf.len, &fsck_options,
                                &tagged_oid, &tagged_type))
                die(_("tag on stdin did not pass our strict fsck check"));