mirror of
https://github.com/git/git.git
synced 2024-11-29 04:54:56 +08:00
1cb0134f34
This will allow callers to specify more options (e.g., leaving echo on). The original git_getpass becomes a slim wrapper around the new function. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
10 lines
177 B
C
10 lines
177 B
C
#ifndef PROMPT_H
|
|
#define PROMPT_H
|
|
|
|
#define PROMPT_ASKPASS (1<<0)
|
|
|
|
char *git_prompt(const char *prompt, int flags);
|
|
char *git_getpass(const char *prompt);
|
|
|
|
#endif /* PROMPT_H */
|