summaryrefslogtreecommitdiff
path: root/git-add--interactive.perl
diff options
context:
space:
mode:
authorSimon Ruderich <simon@ruderich.org>2014-03-03 22:16:12 +0100
committerJunio C Hamano <gitster@pobox.com>2014-03-03 14:11:18 -0800
commitb294097bc64b056685c938c338f047be0c0771d8 (patch)
tree71837413297bd16954f236b12abbaa50671592f4 /git-add--interactive.perl
parent8358f1acd5f0cc7f886228f3266ab6940995fe1c (diff)
downloadgit-b294097bc64b056685c938c338f047be0c0771d8.tar.gz
git-add--interactive: warn if module for interactive.singlekey is missingsr/add--interactive-term-readkey
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>
Diffstat (limited to 'git-add--interactive.perl')
-rwxr-xr-xgit-add--interactive.perl3
1 files changed, 3 insertions, 0 deletions
diff --git a/git-add--interactive.perl b/git-add--interactive.perl
index 24bb1ab992..d3bca12611 100755
--- a/git-add--interactive.perl
+++ b/git-add--interactive.perl
@@ -58,6 +58,9 @@ if ($repo->config_bool("interactive.singlekey")) {
Term::ReadKey->import;
$use_readkey = 1;
};
+ if (!$use_readkey) {
+ print STDERR "missing Term::ReadKey, disabling interactive.singlekey\n";
+ }
eval {
require Term::Cap;
my $termcap = Term::Cap->Tgetent;