]> git.ipfire.org Git - thirdparty/git.git/commit
add-patch: let options k and K roll over like j and J
authorRené Scharfe <l.s.r@web.de>
Mon, 6 Oct 2025 17:22:38 +0000 (19:22 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 6 Oct 2025 17:51:42 +0000 (10:51 -0700)
commit1967b60681256ed452ed70dedf381b5380697901
tree792359dff9930d3384aa395403fbcb6e17ec63ae
parent171c1688ccbe5e6d709444a65a5ca2e0a9175b16
add-patch: let options k and K roll over like j and J

Options j and J roll over at the bottom and go to the first undecided
hunk and hunk 1, respectively.  Let options k and K do the same when
they reach the top of the hunk array, so let them go to the last
undecided hunk and the last hunk, respectively, for consistency.  Also
use the same direction-neutral error messages.

Signed-off-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-add.adoc
add-patch.c
t/t3701-add-interactive.sh