Good point. Sometimes I will change a block of C code by wrapping it in
a conditional or loop. The real change is to add maybe one or two
lines, and add another tab to indent 50 lines one more level.
Subversion diffs out and stores all 52 lines rather than just the 2 new
lines, and recognizing that the other 50 lines just got another tab
prefixed ( a one byte change per line, which is exactly the same on all
50 lines ). A smarter diff engine would be nice for that.
Malcolm Rowe wrote:
>
> The original poster was, I believe, talking about OpenOffice.org
> documents, which sound like a fine thing to store in a version control
> system.
>
> Note that the same argument essentially applies to any structured
> document for which there is a 'better' (more space efficient, better able
> to represent changes) delta mechanism than a binary diff: zip files,
> compound OLE documents (e.g., Microsoft Office files), XML files,
> potentially even C code.
>
> This is just the storage equivalent to the 'custom diff tool for different
> document types' issue.
>
> Regards,
> Malcolm
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Dec 7 20:46:12 2005