Question: libxdiff: text-patches: internal format
- From
- matthew@giassa.net <matthew@giassa.net>
- Date
- Mar 23, 2017, 18:00 UTC
- Message-ID
- <20170323180026.7qdfdzqgyczt2s3f@darkstar>
Hi there,
Following up on an earlier question of mine from yesterday, is there any formal documentation (save for source diving) on the internal format used by libxdiff/xdiff when it generates a patch by comparing two plaintext files?
I'd like to generate a human-readable "pretty" diff from the output generated by libxdiff, and while the suggestion by Stefan yesterday is a good idea (ie: go through diff.c), I'm trying to see if there's a quicker way to pull this off. Also, I can't determine if lifting that code from git would invoke LGPL licensing constraints (no problem), or GPL licensing constraints (incompatible with my application). If the format is easy enough to follow, I might just write my own parser, provided it's a trivial task.
Thank you.
-- Matthew Giassa e: matthew@giassa.net