Skip to content

Commit

Permalink
apply --reject: count hunks starting from 1, not 0
Browse files Browse the repository at this point in the history
Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Junio C Hamano committed Aug 22, 2006
1 parent a2bf404 commit 0e9ee32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builtin-apply.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 0e9ee32

Please sign in to comment.