From 0e9ee32358413feaa4e1cb664cb0a1e6d52f434f Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Tue, 22 Aug 2006 15:49:28 -0700 Subject: apply --reject: count hunks starting from 1, not 0 Signed-off-by: Junio C Hamano --- builtin-apply.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'builtin-apply.c') diff --git a/builtin-apply.c b/builtin-apply.c index 42253e6a72..a874375e78 100644 --- a/builtin-apply.c +++ b/builtin-apply.c @@ -2313,7 +2313,7 @@ static int write_out_one_reject(struct patch *patch) */ fprintf(rej, "diff a/%s b/%s\t(rejected hunks)\n", patch->new_name, patch->new_name); - for (cnt = 0, frag = patch->fragments; + for (cnt = 1, frag = patch->fragments; frag; cnt++, frag = frag->next) { if (!frag->rejected) { -- cgit v1.2.3