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

Re: bug? illegal text in commit log

From
Jeff King <peff@peff.net>
Date
Feb 12, 2020, 02:24 UTC
Message-ID
<20200212022441.GA2963695@coredump.intra.peff.net>
In-Reply-To
<3cd137fa-b879-9850-0b81-5f907623ee6d@web.de>
On Fri, Feb 07, 2020 at 09:30:59PM +0100, René Scharfe wrote:
> My problem with the situation is that innocent-looking commits that
> can be diffed, pushed and pulled suddenly fall apart when used in a
> mail-based workflow or with rebase am.
Maybe we could automatically write ">diff" in such mails? :)
Speaking of which, try this:
  git init
  echo base >file
  git add file
  git commit -m base
  echo change >file
  {
    echo subject
    echo
    echo "From fc4ee3386d6db204b00b45889ef42400b9e18eed Mon Sep 17 00:00:00 2001"
  } | git commit -a -F -
  git format-patch --stdout -1 >patch
  git reset --hard HEAD^
  git am patch
mboxrd fixes this, but it's not the default.
-Peff
Previous: René ScharfeNext: Michael S. Tsirkin
Message 10 of 14 in “bug? illegal text in commit log”
  1. Michael S. TsirkinFeb 4, 2020
  2. René ScharfeFeb 4, 2020
  3. Junio C HamanoFeb 4, 2020
  4. Michael S. TsirkinFeb 6, 2020
  5. Junio C HamanoFeb 6, 2020
  6. Junio C HamanoFeb 6, 2020
  7. René ScharfeFeb 6, 2020
  8. Junio C HamanoFeb 7, 2020
  9. René ScharfeFeb 7, 2020
  10. Jeff KingFeb 12, 2020
  11. Michael S. TsirkinFeb 6, 2020
  12. Pratyush YadavFeb 7, 2020
  13. René ScharfeFeb 7, 2020
  14. Junio C HamanoFeb 7, 2020

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.