]> Kevux Git Server - rit/commit
interactive -p: add new `--auto-advance` flag
authorAbraham Samuel Adekunle <abrahamadekunle50@gmail.com>
Sat, 14 Feb 2026 11:03:54 +0000 (12:03 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 17 Feb 2026 18:48:36 +0000 (10:48 -0800)
commit06c81a1118a6c9a77505b0ae3092576fa4c01763
tree70016fd379f1968b614387561b779b0be270352c
parent68cb7f9e92a5d8e9824f5b52ac3d0a9d8f653dbe
interactive -p: add new `--auto-advance` flag

When using the interactive add, reset, stash or checkout machinery,
we do not have the option of reworking with a file when selecting
hunks, because the session automatically advances to the next file
or ends if we have just one file.

Introduce the flag `--auto-advance` which auto advances by default,
when interactively selecting patches with the '--patch' option.
However, the `--no-auto-advance` option does not auto advance, thereby
allowing users the option to rework with files.

Signed-off-by: Abraham Samuel Adekunle <abrahamadekunle50@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
add-interactive.c
add-interactive.h
builtin/add.c
builtin/checkout.c
builtin/reset.c
builtin/stash.c
t/t9902-completion.sh