Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 05 Jan 2004 15:39:16 -0500
From:      Bryce W Nesbitt <bryce1@obviously.com>
To:        freebsd-cvsweb@freebsd.org
Subject:   Re: MIME types, links, diff tools
Message-ID:  <3FF9CB74.5000707@obviously.com>
In-Reply-To: <1073333659.9121.229.camel@bobcat.mine.nu>
References:  <3FB23C1F.6040502@obviously.com> <3FB28082.6070707@obviously.com><3FBCEA3F.4050106@obviously.com> <3FD3547A.5010400@obviously.com><3FDF6F74.4070307@obviously.com> <3FEB7626.2030606@obviously.com><3FEF5E93.8020600@obviously.com> <3FF8DD46.5090501@obviously.com> <1073333659.9121.229.camel@bobcat.mine.nu>

next in thread | previous in thread | raw e-mail | index | archive | help
My guess is that diffing archives is a relatively rare operation, and 
not worth too much
work.  My patch took a pragmatic approach:
       Unpack the archive
       Check if any constituent files have a special diff associated 
with them
       If no, then "diff -r".
Before this patch, archives were completely undiffable.  So "diff -r" is 
better than nothing.
I use archives as a method of grouping related files, since CVS can't do 
this itself.

Perhaps more common than archives are compressed files.  "file.doc.bz2" 
probably
is best handled by unpacking it first, then applying the mime type 
detection to the result.

                      -Bryce

Ville Skyttä wrote:

>Diffing archive contents adds another level of complexity, whether to
>use plain "diff -r" or dedicated tools for diffing each file in the
>arcive separately, and how to sanely combine the results of different
>diff tools if the latter way is chosen.
>
>Thoughts?
>




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3FF9CB74.5000707>