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

Re: [PATCH] builtin-commit: remove .git/SQUASH_MSG upon successful commit

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 8, 2008, 10:03 UTC
Message-ID
<7vsl03kbof.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<20080208095358.25666.qmail@b4daf7aef4dba9.315fe32.mid.smarden.org>
Gerrit Pape <pape@smarden.org> writes:
Show 5 quoted lines
> After doing a merge --squash, and commit afterwards, the commit message
> template SQUASH_MSG in the git directory is not removed, which means that
> the content of SQUASH_MSG is used as default commit message for all
> subsequent commits.  So have git commit remove the file SQUASH_MSG from
> the git directory upon a successful commit.

It appears that there are a few more differences from what contrib/examples/git-commit.sh used to do. For example, the COMMIT_EDITMSG file used to be removed at around the same place as the SQUASH_MSG file.

Previous: Gerrit PapeNext: Junio C Hamano
Message 2 of 4 in “builtin-commit: remove .git/SQUASH_MSG upon successful commit”
  1. builtin-commit: remove .git/SQUASH_MSG upon successful commitGerrit Pape, Feb 8, 2008
  2. Junio C HamanoFeb 8, 2008
  3. Junio C HamanoFeb 10, 2008
  4. Gerrit PapeFeb 11, 2008

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.