Re: [PATCH v2] make diff --color-words customizable
- From
- Davide Libenzi <davidel@xmailserver.org>
- Date
- Jan 13, 2009, 18:50 UTC
- Message-ID
- <alpine.DEB.1.10.0901131045470.14865@alien.or.mcafeemobile.com>
- In-Reply-To
- <200901130152.24401.jnareb@gmail.com>
On Tue, 13 Jan 2009, Jakub Narebski wrote:
> Is this core algorithm available as some exported function in libxdiff? > I mean would it be easy to replace default line tokenizer (per-line > pre-processing) and post-processing to better deal with word diff?
In libxdiff, no. I hadn't thought to export the raw Meyer algo, and nobody ever asked before.
> The other side would be to generate per-paragraph diffs (with empty > line being separator)...
In Git I guess you can use it to generate other kind of diffs. I don't see any problems with that. Just requires more memory WRT a line based one.
- Davide