Skip to content

pr-1100/phillipwood/wip/add-p-fix-hunk-splitting-v2

Thanks to Junio and Ævar for their comments on V1. I've updated the commit
message and added a helper function as suggested.

V1 Cover Letter: Fix a small regression in the hunk splitting of the builtin
version compared to the perl version. Thanks to Szeder for the easy to
follow bug report.

Phillip Wood (2):
  t3701: clean up hunk splitting tests
  builtin add -p: fix hunk splitting

 add-patch.c                | 20 ++++++++++------
 t/t3701-add-interactive.sh | 48 ++++++++++++++++++++++++++++++++++----
 2 files changed, 56 insertions(+), 12 deletions(-)

base-commit: cd3e606211bb1cf8bc57f7d76bab98cc17a150bc

Submitted-As: https://lore.kernel.org/git/pull.1100.v2.git.1641899530.gitgitgadget@gmail.com
In-Reply-To: https://lore.kernel.org/git/pull.1100.git.1640010777.gitgitgadget@gmail.com
Assets 2