diff: Only count lines in show_shortstats
[gitweb.git] / diff.c
diff --git a/diff.c b/diff.c
index e61ccd1123fcb909d72c002e61cd37c1ae5b49d7..ac624c477cfba345129be7513c91bccbcabab45c 100644 (file)
--- a/diff.c
+++ b/diff.c
@@ -1668,7 +1668,7 @@ static void show_shortstats(struct diffstat_t *data, struct diff_options *option
                        continue;
                if (!data->files[i]->is_renamed && (added + deleted == 0)) {
                        total_files--;
-               } else {
+               } else if (!data->files[i]->is_binary) { /* don't count bytes */
                        adds += added;
                        dels += deleted;
                }