lkml.org 
[lkml]   [2000]   [Nov]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: RFC: "SubmittingPatches" text

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/

\
 
 \ /
  Last update: 2005-03-22 12:47    [W:0.075 / U:0.864 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site