-   Linux - Newbie (
-   -   Creating patch file which options to use? (

cranium2004 03-10-2005 11:31 PM

Creating patch file which options to use?

I want to create a patch file to linux kernel source to which i modified. I am using -urN options does it correct ? also what if my original source in /usr/src/linux-2.6.8 and modified source in /home/cranium/mylinux-2.6.8. Does the following command creates correct patch file?
diff -urN /home/cranium/mylinux-2.6.8 /usr/src/linux-2.6.8

If both argumants are files instead directories then whether to use
diff file1 file2
diff -uN file1 file2

Why -u (unified output format) need to be specified?

hw-tph 03-13-2005 04:35 AM

The unified output is a lot more human readable than the old standard - just create a non-unified diff and view/edit it if you want to see how it looks. I also suppose it has other benefits, but as all official patches use the unified output I use that too.


All times are GMT -5. The time now is 11:32 AM.