Re: git apply vs patch -p1

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема Re: git apply vs patch -p1
Дата
Msg-id 5234B318.5020406@dunslane.net
обсуждение исходный текст
Ответ на git apply vs patch -p1  (Josh Berkus <josh@agliodbs.com>)
Ответы Re: git apply vs patch -p1  (Andres Freund <andres@2ndquadrant.com>)
Список pgsql-hackers
On 09/14/2013 02:37 PM, Josh Berkus wrote:
> Folks,
>
> Lately I've been running into a lot of reports of false conflicts
> reported by "git apply".  The most recent one was the "points" patch,
> which git apply rejected for completely ficticious reasons (it claimed
> that the patch was trying to create a new file where a file already
> existed, which it wasn't).
>
> I think we should modify the patch review and developer instructions to
> recommend always using patch -p1 (or -p0, depending), even if the patch
> was produced with "git diff".
>
> Thoughts?
>


FWIW that's what I invariably use.

You do have to be careful to git-add/git-rm any added/deleted files, 
which git-apply does for you (as well as renames) - I've been caught by 
that a couple of times.


cheers

andrew





В списке pgsql-hackers по дате отправления:

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: record identical operator
Следующее
От: Marko Tiikkaja
Дата:
Сообщение: Re: Proposal: PL/PgSQL strict_mode