summaryrefslogtreecommitdiff
path: root/builtin-apply.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-08-22 15:49:28 -0700
committerJunio C Hamano <junkio@cox.net>2006-08-22 15:49:28 -0700
commit0e9ee32358413feaa4e1cb664cb0a1e6d52f434f (patch)
treeac02a425199ac373d5748794f4f107b2cc0dc298 /builtin-apply.c
parenta2bf404e280b8d56d0efa15bd9700464cf8f0d4d (diff)
downloadgit-0e9ee32358413feaa4e1cb664cb0a1e6d52f434f.tar.gz
apply --reject: count hunks starting from 1, not 0
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'builtin-apply.c')
-rw-r--r--builtin-apply.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin-apply.c b/builtin-apply.c
index 42253e6a72..a874375e78 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) {