[chora] chora image diff

Ryan Gallagher ryan@studiesabroad.com
Tue, 13 Aug 2002 22:59:04 -0500


Quoting Eric Rostetter <eric.rostetter@physics.utexas.edu>:

> Quoting Chuck Hagenbuch <chuck@horde.org>:
>  
> > > * What other mime types besides images can/should we create a special
> > > "diff" view for?
> > 
> > Any binary types that we can handle, it seems to me.
> 
> I was kind of hoping for more than that... :) Examples of types that might
> be reasonable (and fairly easy) to implement?  Binary files that appear
> often in Horde might be a good goal, but I'm not sure what there are
> except for images and .mo files, and it doesn't seem too realistic to do .mo
> files...
> 
[..snip..]
> 
> Anyway, I'll start with images, and see where it goes from there...
> 

This thread really peaked my interest.  I apologize ahead if comments were not 
invited.

What about various structured document formats?  About to go out on a limb 
here... Stop me if any repositories or diff techniques already deal with this.

I think it would be neat, instead of a line-by-line diff of a text file... if 
we had a method for parsing the element tree of say... an XML file (example).  
Normal diffs would still apply but it would be interesting if you could see a 
summary of which elements in the tree have changed/moved/added/deleted.  This 
might apply to many "text" formats such as HTML, XML, SGML, DHTML, to name 
only a few.

A) I'm not sure how possible it would be with simply a CVS backend. 

B) I do not have the time at the moment to investigate too much further or code 
it.  Just an idea for a possible feature. 

Allowing other diff types on other filetypes seems like one of those areas 
where "pluggable" apps (be they php or other) might come in to play.

-Ryan