On Wed, 4 Apr 2007, Johannes Schindelin wrote: > > The subtle difference: your approach is _expensive_ in terms of CPU time, > while the byte change approach is _dirt cheap_. Well, you could do a combination (still dirt cheap): - show the size before/after (and yes, new/delete should be separate from "zero size before/after") - show the size of the binary patch. No "X added bytes" vs "Y bytes deleted", just "size of binary patch". It could be really small, even if 10k was deleted, or the file was totally re-organized by moving chunks around. It would still be a meaningful thing to know - if only because it tells you how much space the delta takes. So even if it's a .jpg, and the actual *picture* didn't change a lot (ie you did some new version with color correction or something: it looks similar to the old one, but the *diff* is basically "rewrite it all"), knowing the size of the delta at least has the meaning of "this is how basically much space it will take when you send the binary diff in an email". That's fairly close to what "5 new lines, 1 deleted line" message means. It's another way to give you an approximate idea of how big the changes were. Linus - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html