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 /git-quiltimport.sh | |
parent | add -p: trap Ctrl-D in 'goto' mode (diff) | |
download | tgif-ca6ac7f1357df352fec247dc98a3e6784e6c3fea.tar.xz |
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 'git-quiltimport.sh')
0 files changed, 0 insertions, 0 deletions