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

Re: Patches generated by "git format-patch -M -B" can't be applied with "git apply"?

From
Junio C Hamano <gitster@pobox.com>
Date
Sep 14, 2015, 22:32 UTC
Message-ID
<xmqqh9mwvdgu.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<CAPF-yOb4dRWGLmL==x8=ifvU4Znsut9XQWMLPxBCPq7TzgJ84A@mail.gmail.com>

Yes, "diff -M -B" is known to be problematic, unfortunately. It incorrectly creates an irreversible patch under certain conditions.

http://thread.gmane.org/gmane.linux.kernel/1879635
Previous: Junio C Hamano
Message 3 of 3 in “Patches generated by "git format-patch -M -B" can't be applied with "git apply"?”
  1. Dan KegelSep 14, 2015
  2. Junio C HamanoSep 14, 2015
  3. Junio C HamanoSep 14, 2015

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.