Re: git apply vs patch -p1 - Mailing list pgsql-hackers

From Josh Berkus
Subject Re: git apply vs patch -p1
Date
Msg-id 523756D1.7080303@agliodbs.com
Whole thread Raw
In response to git apply vs patch -p1  (Josh Berkus <josh@agliodbs.com>)
Responses Re: git apply vs patch -p1
List pgsql-hackers
On 09/15/2013 11:46 PM, Ashutosh Bapat wrote:
> On Sun, Sep 15, 2013 at 12:38 AM, Andres Freund <andres@2ndquadrant.com>wrote:
>> git reset?
>>
>>
> git reset wouldn't remove the files that were newly added by the patch,
> would it?

The issue isn't that, it's that git apply is just buggy and can't tell
the difference between a new file and a modified one.

The "points" patch contained no new files, just modifications.  But for
some reason, git apply read it as being all new files, which failed.

"patch -p1" worked fine.

-- 
Josh Berkus
PostgreSQL Experts Inc.
http://pgexperts.com



pgsql-hackers by date:

Previous
From: Kevin Grittner
Date:
Subject: Re: record identical operator
Next
From: Andrew Gierth
Date:
Subject: Re: git apply vs patch -p1