Hi, all,

We've reached another milestone in libfossil: diff generation (context- and
sbs-diffs) is in place. Here's an example:

http://fossil.wanderinghorse.net/repos/libfossil/index.cgi/event/ca692afb86f542136a606738ef919e234f474b4a

The only functional difference between this support and fossil(1)'s is that
this one sends the diff to an arbitrary output channel (callback function),
as opposed to a memory buffer (sbs diffs have to buffer internally, though).

Diff generation is not limited to repository content - clients can diff
arbitrary text content. The library cannot yet diff between a checkout and
a repository as the checkout-level bits are not yet in place. Using it from
client code looks like:
http://fossil.wanderinghorse.net/repos/libfossil/index.cgi/artifact/b99963f323ff017eab70c8b9fe86775623669e47?ln=337-343


My hat goes off to the devs who wrote the diff generation code. Luckily it
was structured such that i didn't have to understand most of it in order to
port it.

Happy Hacking!

-- 
----- stephan beal
http://wanderinghorse.net/home/stephan/
http://gplus.to/sgbeal
_______________________________________________
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to