I'm trying to use diff/patch to create a changelog of a single file. I want all the changes to be listed in one file, in chronological order.
I thought that I could simply append a bunch of diff patches to a single file:
Code:
diff original new >> patch.history
..and then apply all the patches at once.
Code:
patch original patch.history
This doesn't work because each patch assumes that the previous patch has been applied so that the line numbers match up.
Is there a way to tell the patch command to "commit" after each patch in a single file, so that the next patch will see the correct version it needs to patch?
Is there another way to save a bunch of patches into a single file?