What is this?
This is an implementation of Bram Cohen's patience-diff. It's intended to be used as a library, but there is also a small command line utility.
The library hasn't seen much testing yet so I'm calling it a 0.1.x - use at your own peril.
There is another implementation. This package has no relation to that, and I hadn't seen it until I tried publishing with the same name.
API:
use ;
let before = vec!;
let after = vec!;
assert_eq!;
}
Example output:
$ cargo run -- src/testdata/before.c src/testdata/after.c
Finished dev [unoptimized + debuginfo] target(s) in 0.05s
Running `target/debug/pdiff src/testdata/before.c src/testdata/after.c`
+void functhreehalves() {
+ x += 1.5
+}
+
void func2() {
x += 2
}
x += 1
}