mirror of
https://github.com/git/git.git
synced 2026-03-11 17:39:46 +01:00
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>
25 lines
480 B
C
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 */
|