summaryrefslogtreecommitdiff
path: root/log-tree.c
diff options
context:
space:
mode:
authorPhillip Wood <phillip.wood@dunelm.org.uk>2025-09-25 15:10:38 +0000
committerJunio C Hamano <gitster@pobox.com>2025-09-25 10:13:23 -0700
commit732650e263eb6bceda9988a8bbe75f311d908897 (patch)
tree86e35482235e57aa5eedafc7a7e596edc0f4c52c /log-tree.c
parent3b9532dab2fe1db12d5a33c74a0256d03a4c4861 (diff)
add-patch: update hunk splitability after editing
If, when the user edits a hunk, they change deletion lines into context lines or vice versa, then the number of hunks that the edited hunk can be split into may differ from the unedited hunk. This means that so we should recalculate `hunk->splittable_into` after the hunk has been edited. In practice users are unlikely to hit this bug as it is doubtful that a user who has edited a hunk will split it afterwards. Signed-off-by: Phillip Wood <phillip.wood@dunelm.org.uk> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'log-tree.c')
0 files changed, 0 insertions, 0 deletions