LibDiff currently contains functionality for parsing diffs in the "unified format" and for a generating simple diff that contains only additions.