1

When doing "diff -bBupwr" of two directories, dir and dir.orig to capture the differences, the util doesn't include files that exist only in dir, it only reports that e.g. dir/app.c exists only in dir/, but I would like it to be added in a resulting diff file, so that it could be applied as a patch.

I checked 'man diff' but no clues was found. I'd appreciate helpful advises for this. Thanks.

Mark
  • 6,052
  • 8
  • 61
  • 129

1 Answers1

2

Use the option -N. The man page says:

  -N, --new-file
          treat absent files as empty
hek2mgl
  • 152,036
  • 28
  • 249
  • 266