From: Junio C Hamano Date: Tue, 9 Jan 2007 20:04:30 +0000 (-0800) Subject: Merge branch 'maint' X-Git-Tag: v1.5.0-rc1~36 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/240897e908e48e8f8c8d5555522afe255b3b734b?hp=-c Merge branch 'maint' * maint: Fix "Do not ignore a detected patchfile brokenness." Do not ignore a detected patchfile brokenness. --- 240897e908e48e8f8c8d5555522afe255b3b734b diff --combined builtin-apply.c index 1c35837068,721d011bd0..38a9fdd808 --- a/builtin-apply.c +++ b/builtin-apply.c @@@ -6,6 -6,7 +6,6 @@@ * This applies patches on top of some (arbitrary) version of the SCM. * */ -#include #include "cache.h" #include "cache-tree.h" #include "quote.h" @@@ -811,7 -812,8 +811,8 @@@ static int find_header(char *line, unsi struct fragment dummy; if (parse_fragment_header(line, len, &dummy) < 0) continue; - error("patch fragment without header at line %d: %.*s", linenr, (int)len-1, line); + die("patch fragment without header at line %d: %.*s", + linenr, (int)len-1, line); } if (size < len + 6) @@@ -2118,11 -2120,7 +2119,11 @@@ static void numstat_patch_list(struct p for ( ; patch; patch = patch->next) { const char *name; name = patch->new_name ? patch->new_name : patch->old_name; - printf("%d\t%d\t", patch->lines_added, patch->lines_deleted); + if (patch->is_binary) + printf("-\t-\t"); + else + printf("%d\t%d\t", + patch->lines_added, patch->lines_deleted); if (line_termination && quote_c_style(name, NULL, NULL, 0)) quote_c_style(name, NULL, stdout, 0); else