git-add--interactive: warn if module for interactive.singlekey is missing
Suggested-by: Junio C Hamano <gitster@pobox.com> Signed-off-by: Simon Ruderich <simon@ruderich.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
8358f1acd5
commit
b294097bc6
@ -58,6 +58,9 @@ if ($repo->config_bool("interactive.singlekey")) {
|
|||||||
Term::ReadKey->import;
|
Term::ReadKey->import;
|
||||||
$use_readkey = 1;
|
$use_readkey = 1;
|
||||||
};
|
};
|
||||||
|
if (!$use_readkey) {
|
||||||
|
print STDERR "missing Term::ReadKey, disabling interactive.singlekey\n";
|
||||||
|
}
|
||||||
eval {
|
eval {
|
||||||
require Term::Cap;
|
require Term::Cap;
|
||||||
my $termcap = Term::Cap->Tgetent;
|
my $termcap = Term::Cap->Tgetent;
|
||||||
|
Loading…
Reference in New Issue
Block a user