Files
git/autocorrect.h
Jiamu Sun 2a48e5668b autocorrect: rename AUTOCORRECT_SHOW to AUTOCORRECT_HINTONLY
AUTOCORRECT_SHOW is ambiguous. Its purpose is to show commands similar
to the unknown one and take no other action. Rename it to fit the
semantics.

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

25 lines
480 B
C

#ifndef AUTOCORRECT_H
#define AUTOCORRECT_H
struct config_context;
enum autocorr_mode {
AUTOCORRECT_HINTONLY,
AUTOCORRECT_NEVER,
AUTOCORRECT_PROMPT,
AUTOCORRECT_IMMEDIATELY,
AUTOCORRECT_DELAY,
};
struct autocorr {
enum autocorr_mode mode;
int delay;
};
void autocorr_resolve_config(const char *var, const char *value,
const struct config_context *ctx, void *data);
void autocorr_confirm(struct autocorr *conf, const char *assumed);
#endif /* AUTOCORRECT_H */