]> git.ipfire.org Git - thirdparty/git.git/commit
add-patch: let options a and d roll over like y and n
authorRené Scharfe <l.s.r@web.de>
Mon, 6 Oct 2025 17:23:34 +0000 (19:23 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 6 Oct 2025 17:51:43 +0000 (10:51 -0700)
commite8c744dd9a0270d616ab10aaddfa07cfc071e382
tree2eac87a2cb87f9f30564034ce15213446d2c340a
parent1967b60681256ed452ed70dedf381b5380697901
add-patch: let options a and d roll over like y and n

Options a and d stage and unstage all undecided hunks towards the bottom
of the array of hunks, respectively, and then roll over to the very
first hunk.  The first part is similar to y and n if the current hunk is
the last one in the array, but they roll over to the next undecided
hunk if there is any.  That's more useful; do it for a and d as well.

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