Skip to content
Snippets Groups Projects
Commit 278a84ca authored by Giovanni Bussi's avatar Giovanni Bussi
Browse files

Added --save-originals to patch

I added a new mode to store patches. If one saves them with
--save-originals (instead of -s) what happens is that
/patches/codename.diff
will be a directory. Instead of storing diff files there,
we will store original/modified pairs.

When patching, if a directory is found in
/patches/codename.diff
the diff are computed and then reapplied on the actual files.

The only change is that the diff is not stored but re-computed on-the-fly.
This has a completely equivalent effect of the original way.
E.g., one can patch two slightly different versions
of an MD code with the same patch.

However, it has the advantage that stored files are more friendly.
E.g., one could directly edit them. Also the git-merge of two
different patches should work better now.
parent 73b65108
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment