From: Junio C Hamano Date: Sun, 01 Jan 2012 09:11:34 GMT Subject: Re: [PATCH 2/2] git-svn, perl/Git.pm: extend and use Git->prompt method for querying users Message-ID: <7v8vlrwzw9.fsf@alter.siamese.dyndns.org> In-Reply-To: <4EFDD06A.3010708@tu-clausthal.de> Sven Strickroth writes: > Am 30.12.2011 14:54 schrieb Jeff King: > ... >> Username: >> Password: >> Remember password? [checkbox] >> >> I was planning to do something custom for credentials as an extension to >> the credential helper protocol, but this could also fall under the >> heading of a general prompt helper. > > This might be problematic, because (for git-svn) username and password > are not requested together. I do not think Peff means the dialog must ask these three items at the same time. The point is that other codepaths know they need to ask them and would benefit if they can instruct the dialog external helper to ask them in a single interaction. So if your callsite does not ask them together, it is OK. You can keep asking them separately in two dialog interactions.