mirror of
https://github.com/git/git
synced 2024-09-12 21:04:12 +00:00
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 @@
|
||||||
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 a new issue