git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] git-add--interactive: warn if module for interactive.singlekey is missing

From
Simon Ruderich <simon@ruderich.org>
Date
Mar 3, 2014, 21:16 UTC
Message-ID
<f5d9de10d80bd2087e6082ba1e12ef65d3f083e3.1393880573.git.simon@ruderich.org>
In-Reply-To
<xmqq1tyjqfbh.fsf@gitster.dls.corp.google.com>
Suggested-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Simon Ruderich <simon@ruderich.org>
---
 git-add--interactive.perl | 3 +++
 1 file changed, 3 insertions(+)
diff --git a/git-add--interactive.perl b/git-add--interactive.perl
index 24bb1ab..d3bca12 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;
-- 
1.9.0.11.g9a08b42

-- 
+ privacy is necessary
+ using gnupg http://gnupg.org
+ public key id: 0x92FEFDB7E44C32F9
Previous: Simon Ruderich
Message 4 of 4 in “git-config: document interactive.singlekey requires Term::Readkey”
  1. git-config: document interactive.singlekey requires Term::ReadkeySimon Ruderich, Mar 2, 2014
  2. Junio C HamanoMar 3, 2014
  3. Simon RuderichMar 3, 2014
  4. git-add--interactive: warn if module for interactive.singlekey is missingSimon Ruderich, Mar 3, 2014

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.