LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Creating patch file which options to use? (https://www.linuxquestions.org/questions/linux-newbie-8/creating-patch-file-which-options-to-use-300245/)

cranium2004 03-10-2005 11:31 PM

Creating patch file which options to use?
 
hello,

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
or
diff -uN file1 file2

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

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.


Håkan


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