Re: bug: `git commit --verbose` not removing text below scissor-line
- From
Eric Sunshine <sunshine@sunshineco.com>
- Date
- Jul 10, 2025, 17:46 UTC
- Message-ID
- <CAPig+cT_5LhE7caRhviRXZ_U3UUcfxo-d74yOYtep33dYJQ2Uw@mail.gmail.com>
- In-Reply-To
- <xmqqecuo82xq.fsf@gitster.g>
On Thu, Jul 10, 2025 at 11:50 AM Junio C Hamano <gitster@pobox.com> wrote:
Show 16 quoted lines
> Oren Levi <orenl@exon-media.com> writes: > > What did you do before the bug happened? (Steps to reproduce your issue) > > 1. Run `git ci -a` > > 2. Edit COMMIT_EDITMSG (using vscode) > > 3. Save&Close > > Here is what I did as a quick sanity check > > $ git checkout --detach HEAD > $ git reset --soft HEAD~23 > $ git commit -a -v > > Since I do not use vscode, my reproduction attempt used an editor > different from it. It is possible that your editor may be mangling > the line that it is not supposed to touch, but that is not something > I can tell.
I don't use vscode either, but I did install it (in a Linux VM) to test this. Like you, I was unable to reproduce the problem using the provided recipe. My attempt was using the factory settings for VScode, which may be different from the settings used by the OP.