Files
git/autocorrect.h
Jiamu Sun e0245a1169 help: make autocorrect handling reusable
Move config parsing and prompt/delay handling into autocorrect.c and
expose them in autocorrect.h. This makes autocorrect reusable regardless
of which target links against it.

Signed-off-by: Jiamu Sun <39@barroit.sh>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2026-03-16 11:21:07 -07:00

17 lines
412 B
C

#ifndef AUTOCORRECT_H
#define AUTOCORRECT_H
#define AUTOCORRECT_SHOW (-4)
#define AUTOCORRECT_PROMPT (-3)
#define AUTOCORRECT_NEVER (-2)
#define AUTOCORRECT_IMMEDIATELY (-1)
struct config_context;
void autocorrect_resolve_config(const char *var, const char *value,
const struct config_context *ctx, void *data);
void autocorrect_confirm(int autocorrect, const char *assumed);
#endif /* AUTOCORRECT_H */