Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2011-12-10 14:40:57 +0400
committerJunio C Hamano <gitster@pobox.com>2011-12-13 04:09:38 +0400
commit1cb0134f3414be187cc3eb98e9740aeeb07dcb16 (patch)
tree89ad60e8b4e903d7d93c26af177ae5e6df9980ce /prompt.h
parentd3c58b83aee2007ca76dc5d1242c09b6f7989c76 (diff)
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 <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'prompt.h')
-rw-r--r--prompt.h3
1 files changed, 3 insertions, 0 deletions
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 */