Splitting up the 'mega' patches

Erika Pacholleck pchllck at nexgo.de
Fri Jan 3 00:03:51 PST 2003


[02.01.2003] Gerard Beekmans <-- :
> 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).
> 
> Now, you can't put comments in a diff file like you do normally in files 

You can do it this way:

*** put all explanations here **************
explanations as follows:
- file1 changes unpatched to patched
- file2 changes also unpatched to also patched
*** end of explanations ********************

*** now just all the diffings **************
diff -Naur test/file1 test.new/file1
--- test/file1	2003-01-03 08:53:56.000000000 +0100
+++ test.new/file1	2003-01-03 08:55:02.000000000 +0100
@@ -1,2 +1,2 @@
 this is a file 1 text
-unpatched
+patched
diff -Naur test/file2 test.new/file2
--- test/file2	2003-01-03 08:54:22.000000000 +0100
+++ test.new/file2	2003-01-03 08:55:12.000000000 +0100
@@ -1,2 +1,2 @@
 this is a file 2 text
-also unpatched
+also patched
********************************************

-- 
Erika ...---...: pacholleck at nexgo dot de
-- 
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