From 1cb0134f3414be187cc3eb98e9740aeeb07dcb16 Mon Sep 17 00:00:00 2001 From: Jeff King Date: Sat, 10 Dec 2011 05:40:57 -0500 Subject: refactor git_getpass into generic prompt function 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 Signed-off-by: Junio C Hamano --- prompt.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'prompt.h') diff --git a/prompt.h b/prompt.h index 0fd7bd997a..9ab85a78a2 100644 --- a/prompt.h +++ b/prompt.h @@ -1,6 +1,9 @@ #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 */ -- cgit v1.2.3