summaryrefslogtreecommitdiff
path: root/prompt.h
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2011-12-10 05:41:08 -0500
committerJunio C Hamano <gitster@pobox.com>2011-12-12 16:09:38 -0800
commita50902590e703878e888fd8a33ec5a22d5347481 (patch)
treed62c8a7f6e43495c4e9e667adb6d6cf094162143 /prompt.h
parent21aeafceda2382d26bfa73a98ba45a937d65d77a (diff)
downloadgit-a50902590e703878e888fd8a33ec5a22d5347481.tar.gz
prompt: use git_terminal_prompt
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>
Diffstat (limited to 'prompt.h')
-rw-r--r--prompt.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/prompt.h b/prompt.h
index 9ab85a78a2..04f321a781 100644
--- a/prompt.h
+++ b/prompt.h
@@ -2,6 +2,7 @@
#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);