]> Kevux Git Server - rit/commit
add-patch: allow disabling editing of hunks
authorPatrick Steinhardt <ps@pks.im>
Mon, 2 Mar 2026 12:13:09 +0000 (13:13 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 3 Mar 2026 23:09:36 +0000 (15:09 -0800)
commit48f6d9232834be661f0d1dc4f187b324124ccbe0
tree5d5c1aea99cdc705a96cce0451194f347a88189c
parent0c5583a57d618db191afceeff54e8cafbee89f41
add-patch: allow disabling editing of hunks

The "add-patch" mode allows the user to edit hunks to apply custom
changes. This is incompatible with a new `git history split` command
that we're about to introduce in a subsequent commit, so we need a way
to disable this mode.

Add a new flag to disable editing hunks.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
add-interactive.c
add-patch.c
add-patch.h
builtin/add.c
builtin/checkout.c
builtin/reset.c
builtin/stash.c