apply --reject: count hunks starting from 1, not 0

Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
Junio C Hamano 2006-08-22 15:49:28 -07:00
parent a2bf404e28
commit 0e9ee32358

View File

@ -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) {