VCP::DiffFormat3pm
Usage
diff $a, $b { STYLE => "VCP::DiffFormat" };
Overview
This is a plugin output formatter for Text::Diff that generates "unified" style diffs without headers. VCP::Dest::revml uses this to output differences for several reasons:
- •
-
The Unix
"diff"command is not available on all platforms by default, specifically WinNT.
- •
-
The two line "file header" is not needed in RevML, since the meta information is captured elsewhere in the <rev> element, and the name and mtime of the files being compared is irrellevant; they're just some temporary files somewhere
- •
-
Because RevML offers MD5 hashes of the file to verify that a diff was applied properly, all of the "-" lines present in a normal unified diff are not necesssary. They are left in now for ease of debugging with RevML files, but may be stripped out to conserve space.
Releases
2 releases since Debian 3.1 (Sarge); the text changed 1 time.