I have two directories src
and src-with-fixes
. I want to make a unified patch, so people can download the src
dir and the patch file and run patch -p1 < patch.diff
and get the fixes in the src dir.
I have two directories src
and src-with-fixes
. I want to make a unified patch, so people can download the src
dir and the patch file and run patch -p1 < patch.diff
and get the fixes in the src dir.
You could run:
Where:
-r
means "recursive"-u
means "produce a unified format diff"-N
means "treat absent files as empty"