提交 0e9ee323 编写于 作者: J Junio C Hamano

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

Signed-off-by: NJunio C Hamano <junkio@cox.net>
上级 a2bf404e
......@@ -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) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册