mirror of
https://github.com/git/git
synced 2024-08-24 18:26:02 +00:00
apply --reject: count hunks starting from 1, not 0
Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
parent
a2bf404e28
commit
0e9ee32358
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue