Re: RFC: "SubmittingPatches" text

From: Kai Germaschewski (kai@thphy.uni-duesseldorf.de)
Date: Fri Nov 17 2000 - 03:30:13 EST


On Thu, 16 Nov 2000, Jeff Garzik wrote:

> To create a patch for a single file, it is often sufficient to do:
>
> SRCTREE=/usr/src/linux
> MYFILE=drivers/net/mydriver.c
>
> cd $SRCTREE
> cp $MYFILE $MYFILE.orig
> vi $MYFILE # make your change
> diff -u $MYFILE.orig $MYFILE > /tmp/patch

One question comes to my mind: Are patches supposed to be applied with
patch -p0 or patch -p1?

AFAIU, the preferred way is -p1, but the above example would need -p0, if
I'm not mistaken. So that'ld make it harder than necessary to collect
patches and then apply the whole set, which seems to be Linus' preferred
way.

--Kai

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Nov 23 2000 - 21:00:12 EST