Broken handling of "J" hunks for "add --interactive"?
- From
- Windl, Ulrich <u.windl@ukr.de>
- Date
- Oct 2, 2025, 09:23 UTC
- Message-ID
- <c72518099a3b465c8761e41210fe3fcb@ukr.de>
Thank you for filling out a Git bug report! Please answer the following questions to help us understand your issue.
What did you do before the bug happened? (Steps to reproduce your issue) git add --interactive
answer some "y", some "n", one "J"
What did you expect to happen? (Expected behavior) git will ask at end for exactly the one "J" hunk
What happened instead? (Actual behavior) git asked about the hunk rejected before the "J" hunk also (asked for two hunks instead of one)
What's different between what you expected and what actually happened? I did not observer that in an older version of git (like 2.26.2)
Anything else you want to add:
Please review the rest of the bug report below. You can delete any lines you don't wish to share.
[System Info] git version: git version 2.51.0 cpu: x86_64 no commit associated with this build sizeof-long: 8 sizeof-size_t: 8 shell-path: /bin/sh libcurl: 8.6.0 OpenSSL: OpenSSL 3.1.4 24 Oct 2023 zlib: 1.2.13 SHA-1: SHA1_DC SHA-256: SHA256_BLK default-ref-format: files default-hash: sha1 uname: Linux 6.4.0-150600.23.65-default #1 SMP PREEMPT_DYNAMIC Tue Aug 12 00:37:41 UTC 2025 (aedcb04) x86_64 compiler info: gnuc: 7.5 libc info: glibc: 2.38 $SHELL (typically, interactive shell): /bin/bash
[Enabled Hooks]