Skip to content

Commit b294097

Browse files
rudisgitster
authored andcommitted
git-add--interactive: warn if module for interactive.singlekey is missing
Suggested-by: Junio C Hamano <[email protected]> Signed-off-by: Simon Ruderich <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 8358f1a commit b294097

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

git-add--interactive.perl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@
5858
Term::ReadKey->import;
5959
$use_readkey = 1;
6060
};
61+
if (!$use_readkey) {
62+
print STDERR "missing Term::ReadKey, disabling interactive.singlekey\n";
63+
}
6164
eval {
6265
require Term::Cap;
6366
my $termcap = Term::Cap->Tgetent;

0 commit comments

Comments
 (0)