In what way is it different from wdiff? I can't see how you can take two files, get the diff, and then apply it to get a third file. You need to start with three files ("base", "branch 1", and "branch 2") to get a fourth ("combined"). What you do is take the diff of branch 1 with base, and apply that diff to branch 2. It's not quite so easy because you'll have to deal with non-obvious matches:
In reply to Re^3: wdiff in perl?
by Tanktalus
in thread wdiff in perl?
by ssk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |