diff options
author | Junio C Hamano <gitster@pobox.com> | 2020-02-05 22:34:58 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-02-05 22:34:58 (GMT) |
commit | 76c57fedfa8a15bd341c0059bff164a049fe1d5c (patch) | |
tree | 5b4a2fd0b9b73b2614ea1b0ef1b048a3b7df4d7c /compat/terminal.h | |
parent | 9a5315edfdf662c4d9bf444ebc297bc802fa5e04 (diff) | |
parent | b2627cc3d4be2f8086711097f99d79a32c6a703a (diff) | |
download | git-76c57fedfa8a15bd341c0059bff164a049fe1d5c.zip git-76c57fedfa8a15bd341c0059bff164a049fe1d5c.tar.gz git-76c57fedfa8a15bd341c0059bff164a049fe1d5c.tar.bz2 |
Merge branch 'js/add-p-leftover-bits'
The final leg of rewriting "add -i/-p" in C.
* js/add-p-leftover-bits:
ci: include the built-in `git add -i` in the `linux-gcc` job
built-in add -p: handle Escape sequences more efficiently
built-in add -p: handle Escape sequences in interactive.singlekey mode
built-in add -p: respect the `interactive.singlekey` config setting
terminal: add a new function to read a single keystroke
terminal: accommodate Git for Windows' default terminal
terminal: make the code of disable_echo() reusable
built-in add -p: handle diff.algorithm
built-in add -p: support interactive.diffFilter
t3701: adjust difffilter test
Diffstat (limited to 'compat/terminal.h')
-rw-r--r-- | compat/terminal.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/compat/terminal.h b/compat/terminal.h index 97db7cd..a9d52b8 100644 --- a/compat/terminal.h +++ b/compat/terminal.h @@ -3,4 +3,7 @@ char *git_terminal_prompt(const char *prompt, int echo); +/* Read a single keystroke, without echoing it to the terminal */ +int read_key_without_echo(struct strbuf *buf); + #endif /* COMPAT_TERMINAL_H */ |