diff command ignoring new file in the new directory
You also need -N
flag. From man diff
:
-N --new-file Treat absent files as empty.
When generating patches, the "standard" diff flags are -Npur
. You've already discovered why you need -N
; -p
makes the patch easier for humans to read.
Try with this command,
diff -RuN "original directory" "modified directory" > version.patch