fetching a generated patch from github

Lawrence Velázquez larryv at macports.org
Tue Jun 2 14:23:36 PDT 2015


On Jun 2, 2015, at 3:38 PM, René J.V. Bertin <rjvbertin at gmail.com> wrote:

> On Tuesday June 02 2015 15:09:48 Lawrence Velázquez wrote:
> 
>> Okay; I wasn't sure if patch could deal with them.
> 
> Patchfiles (at least unified diffs) have context, which is why you get those weird @@ lines in them: they describe where to expect the pattern to be found, but also how many of the lines following the @@ are to be included in that pattern.

Yes, I know how to read (and edit) context diffs.

> Patchfiles in Linux packages routinely contain the commit message because that helps understand what the patch does, and it's not uncommon to find similar patches in ${filespath} directories.

I knew that patches could have ancillary text at the top. What I didn't know was that said text could be interspersed between hunks as well.

vq


More information about the macports-dev mailing list