git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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.

Previous: Junio C Hamano
Message 3 of 3 in “bug: `git commit --verbose` not removing text below scissor-line”
  1. Oren LeviJul 10, 2025
  2. Junio C HamanoJul 10, 2025
  3. Eric SunshineJul 10, 2025

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.