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.1 - use at your own risk.
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.
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`
x += 1
}
+void functhreehalves() {
+ x += 1.5
+}
+
void func2() {
x += 2
}