mirror of
https://github.com/git-for-windows/git.git
synced 2026-04-10 16:54:08 -05:00
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>
17 lines
412 B
C
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 */
|