Griping about diff and patch

The diff and patch programs really need:

  • A way to mark a file as deleted (Instead of turning it into an empty file by deleting every single line in the diff.)
  • A way to rename a file (Instead of zeroing out the old name and creating a file with the new name and all the contents in the diff.)
  • A way to specify the permission bits to use when creating a file such as a script that should be executable.
  • A way to create and delete empty directories.

I should see about making such a beast.

Or we could just actually get around to making the subversion repository public (Or I could upload my git copy of the current devel branch).

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

shar

I think the old-fashioned way to do that is to pack the diff into a shar archive that also includes relevant shell commands to run before and after the diff. Heh.

Something along those lines

Something along those lines was what I was thinking of doing, actually, though not as a shell script. But that's a better, more self-contained option than mine (Using a perl script and a modified diff file format)

Will it run on Windows? ;)

Will it run on Windows? ;)

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.