mirror of
https://github.com/git/git.git
synced 2024-10-28 04:49:43 +01:00
compat/terminal: mark parameter of git_terminal_prompt() UNUSED
If neither HAVE_DEV_TTY nor GIT_WINDOWS_NATIVE is set, the fallback code calls the system getpass(). This unfortunately ignores the "echo" boolean parameter, as we have no way to implement that functionality. But we still have to keep the unused parameter, since our interface has to match the other implementations. Co-authored-by: Jeff King <peff@peff.net> Signed-off-by: Ramsay Jones <ramsay@ramsayjones.plus.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
39bf06adf9
commit
d4dc0efd7d
1 changed files with 1 additions and 1 deletions
|
@ -594,7 +594,7 @@ void restore_term(void)
|
|||
{
|
||||
}
|
||||
|
||||
char *git_terminal_prompt(const char *prompt, int echo)
|
||||
char *git_terminal_prompt(const char *prompt, int echo UNUSED)
|
||||
{
|
||||
return getpass(prompt);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue