mirror of
https://github.com/git/git.git
synced 2024-11-25 19:04:18 +08:00
a50902590e
Our custom implementation of git_terminal_prompt has many advantages over regular getpass(), as described in the prior commit. This also lets us implement a PROMPT_ECHO flag for callers who want it. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
11 lines
207 B
C
11 lines
207 B
C
#ifndef PROMPT_H
|
|
#define PROMPT_H
|
|
|
|
#define PROMPT_ASKPASS (1<<0)
|
|
#define PROMPT_ECHO (1<<1)
|
|
|
|
char *git_prompt(const char *prompt, int flags);
|
|
char *git_getpass(const char *prompt);
|
|
|
|
#endif /* PROMPT_H */
|