]> git.ipfire.org Git - thirdparty/git.git/commit
add-patch: reset "permitted" at loop start
authorRené Scharfe <l.s.r@web.de>
Mon, 6 Oct 2025 17:24:28 +0000 (19:24 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 6 Oct 2025 17:51:43 +0000 (10:51 -0700)
commit208e23ea47ad71c20246ff234efa3abc8080513f
treeaaff24390ef2e8dab5f03825492f275dbc9d8408
parente8c744dd9a0270d616ab10aaddfa07cfc071e382
add-patch: reset "permitted" at loop start

Don't accumulate allowed options from any visited hunks, start fresh at
the top of the loop instead and only record the allowed options for the
current hunk.

Reported-by: Junio C Hamano <gitster@pobox.com>
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