I need to write a module in python that gets the output of a unix diff -u command and one of the files that were used to create that ouput and in return output the second file.
The diff -u returns a diff file in a unified format
Could anyone explain to me really hoe to understand that unified format?
There's a python port of Google's diff-match-patch library:
Install it with pip:
An example of applying a patch from the python interpreter: