Is there a Diff library for java that supports Annotate/Blame?

I'm digging through Google's results for free (open source) Java diff libaries, and there seem quite a bunch of those (some of them even working with generic Objects and not only with Strings).

Before I'm digging through tons of search results and not finding what I'm searching, I'll ask here first:

Does any of those diff libraries support a feature like cvs annotate or svn blame. I want to

  • pass the current String[] to a function
  • continue passing older versions of the String[] to a function, until either I have used up all of them, or the library tells me that no original line was left unannotated (the last thing is not really a must but very useful since retrieving older versions of the String[] is expensive so I'd like to stop as early as possible)
  • call a function which gives me an ìnt[] that tells me for every line of the current version, in which version it was last changed or whether it was not changed at all (i. e. last changed in the very first version).

Having support for objects that are not Strings is nice, but no must. And if the API is not exactly that way, I guess I could live with it.

If there is none, can anybody suggest an extensible diff library where that feature can be added easily, preferrably one that would like to receive that feature as a contribution (and does not require tons of paperwork to be filled before they accept contributions, like the GNU project)? I'd volunteer to (at least try to) add it there, then.

8
задан mihi 22 December 2010 в 15:17
поделиться