diff options
author | Thomas Rast <trast@student.ethz.ch> | 2009-02-05 09:28:26 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-02-05 17:44:10 -0800 |
commit | ca6ac7f1357df352fec247dc98a3e6784e6c3fea (patch) | |
tree | accae1f69d9cfdba6e4b7e5a1e55bb1c1c4de86f /Documentation | |
parent | 68c02d7c462e1748578209346f050a587c040139 (diff) | |
download | git-ca6ac7f1357df352fec247dc98a3e6784e6c3fea.tar.gz |
add -p: prompt for single characters
Use Term::ReadKey, if available and enabled with interactive.singlekey,
to let the user answer add -p's prompts by pressing a single key. We're
not doing the same in the main 'add -i' interface because file selection
etc. may expect several characters.
Two commands take an argument: 'g' can easily cope since it'll just
offer a choice of chunks. '/' now (unconditionally, even without
readkey) offers a chance to enter a regex if none was given.
Signed-off-by: Thomas Rast <trast@student.ethz.ch>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/config.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Documentation/config.txt b/Documentation/config.txt index e2b8775dd3..eeb2b0d353 100644 --- a/Documentation/config.txt +++ b/Documentation/config.txt @@ -1000,6 +1000,13 @@ instaweb.port:: The port number to bind the gitweb httpd to. See linkgit:git-instaweb[1]. +interactive.singlekey:: + In interactive programs, allow the user to provide one-letter + input with a single key (i.e., without hitting enter). + Currently this is used only by the `\--patch` mode of + linkgit:git-add[1]. Note that this setting is silently + ignored if portable keystroke input is not available. + log.date:: Set default date-time mode for the log command. Setting log.date value is similar to using 'git-log'\'s --date option. The value is one of the |