mirror of
https://github.com/git/git
synced 2024-08-25 02:35:46 +00:00
![Jeff King](/assets/img/avatar_default.png)
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 */
|