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

Re: [PATCH] git-apply doesn't handle same name patches well [V3]

From
Jakub Narebski <jnareb@gmail.com>
Date
Jun 16, 2008, 20:27 UTC
Message-ID
<m3prqhnn0b.fsf@localhost.localdomain>
In-Reply-To
<1213646686-31964-1-git-send-email-dzickus@redhat.com>
Don Zickus <dzickus@redhat.com> writes:
Show 15 quoted lines
> When working with a lot of people who backport patches all day long, every
> once in a while I get a patch that modifies the same file more than once
> inside the same patch.  git-apply either fails if the second change relies
> on the first change or silently drops the first change if the second change
> is independent.
> 
> The silent part is the scary scenario for us.  Also this behaviour is
> different from the patch-utils.
> 
> I have modified git-apply to cache the filenames of files it modifies such
> that if a later patch chunk modifies a file in the cache it will buffer the
> previously changed file instead of reading the original file from disk.
> 
> Logic has been put in to handle creations/deletions/renames/copies.  All the
> relevant tests of git-apply succeed.
Very nice, although most probably I would never use this.
+1
-- 
Jakub Narebski
Poland
ShadeHawk on #git
Previous: Don ZickusNext: Johannes Schindelin
Message 2 of 6 in “git-apply doesn't handle same name patches well [V3]”
  1. git-apply doesn't handle same name patches well [V3]Don Zickus, Jun 16, 2008
  2. Jakub NarebskiJun 16, 2008
  3. Johannes SchindelinJun 17, 2008
  4. Junio C HamanoJun 18, 2008
  5. Don ZickusJun 19, 2008
  6. Junio C HamanoJun 19, 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.