summaryrefslogtreecommitdiff
path: root/fsck.h
diff options
context:
space:
mode:
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>2021-03-17 18:20:36 (GMT)
committerJunio C Hamano <gitster@pobox.com>2021-03-17 21:02:43 (GMT)
commitfb79f5bff7f47f41cf3697ecc28bfaa888016ce0 (patch)
tree3edce7d259bfce062a4fbd266f2a61b9d0680174 /fsck.h
parenta5828ae6b52137b913b978e16cd2334482eb4c1f (diff)
downloadgit-fb79f5bff7f47f41cf3697ecc28bfaa888016ce0.zip
git-fb79f5bff7f47f41cf3697ecc28bfaa888016ce0.tar.gz
git-fb79f5bff7f47f41cf3697ecc28bfaa888016ce0.tar.bz2
fsck.c: refactor and rename common config callback
Refactor code I recently changed in 1f3299fda9 (fsck: make fsck_config() re-usable, 2021-01-05) so that I could use fsck's config callback in mktag in 1f3299fda9 (fsck: make fsck_config() re-usable, 2021-01-05). I don't know what I was thinking in structuring the code this way, but it clearly makes no sense to have an fsck_config_internal() at all just so it can get a fsck_options when git_config() already supports passing along some void* data. Let's just make use of that instead, which gets us rid of the two wrapper functions, and brings fsck's common config callback in line with other such reusable config callbacks. Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'fsck.h')
-rw-r--r--fsck.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/fsck.h b/fsck.h
index 733378f..f70d11c 100644
--- a/fsck.h
+++ b/fsck.h
@@ -109,7 +109,6 @@ const char *fsck_describe_object(struct fsck_options *options,
* git_config() callback for use by fsck-y tools that want to support
* fsck.<msg> fsck.skipList etc.
*/
-int fsck_config_internal(const char *var, const char *value, void *cb,
- struct fsck_options *options);
+int git_fsck_config(const char *var, const char *value, void *cb);
#endif