From: Junio C Hamano Date: Tue, 22 Aug 2006 22:49:28 +0000 (-0700) Subject: apply --reject: count hunks starting from 1, not 0 X-Git-Tag: v1.4.3-rc1~176^2~1 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0e9ee32358413feaa4e1cb664cb0a1e6d52f434f;p=git.git apply --reject: count hunks starting from 1, not 0 Signed-off-by: Junio C Hamano --- diff --git a/builtin-apply.c b/builtin-apply.c index 42253e6a7..a874375e7 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) {