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

Re: bug? git format-patch -M -D then git am fails

From
Junio C Hamano <gitster@pobox.com>
Date
Nov 13, 2012, 23:22 UTC
Message-ID
<7vfw4dccm7.fsf@alter.siamese.dyndns.org>
In-Reply-To
<1352847962.17444.27.camel@joe-AO722>
Joe Perches <joe@perches.com> writes:
> I don't believe that reversibility
> is a really useful aspect of deletion patches
> when there are known git repositories involved.

You can read "reversibility" as "safety" if you want. We would want to make sure we know what we are deleting before deleting a path.

The history that the receiver of such a patch has may have further changes that are relevant that the sender of the deletion patch did not know about, and removing the path in such a case would make the result inconsistent. If the sender did his work on top of the newer version with the change in the path, the sender's patch may still have deleted the path but would have had changes to other paths to compensate for the loss of that change.

Previous: Joe PerchesNext: Michael J Gruber
Message 4 of 5 in “bug? git format-patch -M -D then git am fails”
  1. Joe PerchesNov 13, 2012
  2. Junio C HamanoNov 13, 2012
  3. Joe PerchesNov 13, 2012
  4. Junio C HamanoNov 13, 2012
  5. Michael J GruberNov 14, 2012

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.