Splitting up the 'mega' patches

Greg Schafer gschafer at zip.com.au
Thu Jan 2 16:11:50 PST 2003

On Thu, Jan 02, 2003 at 05:07:02PM -0700, Gerard Beekmans wrote:
> On January 2, 2003 04:41 pm, Mark Lee wrote:
> > Is it possible to put comments in the patch files themselves? It would be
> > really nice if the patches were self-documented. Maybe this isn't possible
> > (I don't know enough about patches so I apologize if I'm wasting your
> > time).
> I was thinking about the same thing today. We could keep the descriptions in 
> the book less technical and simply refer to the patch file for the nitty 
> gritty details. As you may have seen, I updated the Glibc libnss patch in the 
> book but it doesn't go into too much detail and isn't totally clear yet. I 
> didn't want to write an essay on the issue.
> Now, you can't put comments in a diff file like you do normally in files (by 
> starting a line with a # character). Patch will take everything as-is and 
> will try to patch the file by inserting that kind of data. #'s at the 
> beginning of a line don't mean much, patch will just try to find lines that 
> start with that.

You sure about that? I thought everything above the "diff -uNr" (or
whatever) is ignored.

So yes, you can put comments in the patch if you wish. I'm sure Debian do
this with some of their patches.

Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe lfs-dev' in the subject header of the message

More information about the lfs-dev mailing list