From e949ffefef421bece144a43c49d82b8549b7d7ea Mon Sep 17 00:00:00 2001 From: Julian Prein Date: Tue, 12 Jul 2022 17:38:41 +0200 Subject: [PATCH] git: Set `interactive.singleKey` In interactive commands, allow the user to provide one-letter input with a single key (i.e., without hitting enter). Currently this is used by the --patch mode of git-add(1), git-checkout(1), git-restore(1), git-commit(1), git-reset(1), and git-stash(1). Note that this setting is silently ignored if portable keystroke input is not available; requires the Perl module Term::ReadKey.[1] [1] - git-config(1) --- .config/git/config | 1 + 1 file changed, 1 insertion(+) diff --git a/.config/git/config b/.config/git/config index dc4006b..659003e 100644 --- a/.config/git/config +++ b/.config/git/config @@ -50,6 +50,7 @@ defaultBranch = main [interactive] diffFilter = diff-so-fancy --patch + singleKey = true [log] follow = true [merge]