public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 2.6.2] Documentation/SubmittingPatches
@ 2004-02-05  7:23 Bryan Whitehead
  2004-02-05  8:18 ` Riley Williams
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Bryan Whitehead @ 2004-02-05  7:23 UTC (permalink / raw)
  To: torvalds; +Cc: linux-kernel


I've been trying to get my feet wet by submitting trivial patchs to various maintainers and the responses have been, "your not submiting you patches correctly". It seems most developers/maintainers want a diff done like this:

cd /source-tree
diff -u linux-2.6.2/FileToPatch.orig linux-2.6.2/FileToPatch

instead of the "SubmitingPatches" document way:
cd /source-tree/linux-2.6.2
diff -u FileToPatch.orig FileToPatch

It would be _great_ if the Documentation was more accurate to the taste of developers/maintainers...

If the SubmittingPatches document is correct, then just toss this patch out because this won't be submitted right... ;)

--- linux-2.6.2/Documentation/SubmittingPatches.orig    2004-02-04 22:57:55.818563016 -0800
+++ linux-2.6.2/Documentation/SubmittingPatches 2004-02-04 23:01:28.799185040 -0800
@@ -33,13 +33,15 @@
                                                                                                                                    
 To create a patch for a single file, it is often sufficient to do:
                                                                                                                                    
-       SRCTREE= /devel/linux-2.4
+       SRCTREE= /devel/
+       SRCDIR= linux-2.4
        MYFILE=  drivers/net/mydriver.c
                                                                                                                                    
-       cd $SRCTREE
+       cd $SRCTREE/$SRCDIR
        cp $MYFILE $MYFILE.orig
        vi $MYFILE      # make your change
-       diff -u $MYFILE.orig $MYFILE > /tmp/patch
+       cd $SRCTREE
+       diff -u $SRCDIR/$MYFILE.orig $SRCDIR/$MYFILE > /tmp/patch
                                                                                                                                    
 To create a patch for multiple files, you should unpack a "vanilla",
 or unmodified kernel source tree, and generate a diff against your


-- 
Bryan Whitehead
Email:driver@megahappy.net
WorkE:driver@jpl.nasa.gov

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2004-02-06 17:15 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-05  7:23 [PATCH 2.6.2] Documentation/SubmittingPatches Bryan Whitehead
2004-02-05  8:18 ` Riley Williams
2004-02-05 19:05 ` Arthur Othieno
2004-02-06  3:45 ` jw schultz
2004-02-06  4:13   ` Randy.Dunlap
2004-02-06 17:23     ` Tim Bird

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox