Interesting. I wonder if you can also make this an independent option that prepends diffstat in front of the patch, just like the way the new flag --patch-with-raw flag prepends raw output in front of the patch. By the way, I've been wondering if anybody uses the GIT_EXTERNAL_DIFF interface. Does anybody miss it if we did so? - : 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