]> git.ipfire.org Git - thirdparty/git.git/commit - prompt.c
refactor git_getpass into generic prompt function
authorJeff King <peff@peff.net>
Sat, 10 Dec 2011 10:40:57 +0000 (05:40 -0500)
committerJunio C Hamano <gitster@pobox.com>
Tue, 13 Dec 2011 00:09:38 +0000 (16:09 -0800)
commit1cb0134f3414be187cc3eb98e9740aeeb07dcb16
tree89ad60e8b4e903d7d93c26af177ae5e6df9980ce
parentd3c58b83aee2007ca76dc5d1242c09b6f7989c76
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>
prompt.c
prompt.h