From: Johannes Schindelin Date: Thu, 01 Mar 2007 01:09:56 GMT Subject: Re: [PATCH] Show binary file size change in diff --stat Message-ID: In-Reply-To: <45E5F3D4.8000509@dawes.za.net> Hi, On Wed, 28 Feb 2007, Rogan Dawes wrote: > Johannes Schindelin wrote: > > > On Wed, 28 Feb 2007, Rogan Dawes wrote: > > > > > How about showing the size of the changes between the 2 files via > > > the libxdiff binary patch function? > > > > I briefly considered this, too. But what would it tell you in the case > > of a jpg? I think it has more disadvantages than advantages... > > It would still tell you the extent of the changes. i.e. Did we change > only 10 bytes of the file, or is it a dramatic change? I was not explicit enough, okay. I was not so worried about the case where only 10 bytes changed. If you insert a single dot in a jpg image, chances are that your binary content will change _a lot_. So, no problem deducing from 10 bytes changed that it was a minor change. But you cannot deduce the opposite of a 1MB change! Hth, Dscho