From: Junio C Hamano Date: Wed, 24 Oct 2018 01:25:12 +0000 (+0900) Subject: fsck: s/++i > 1/i++/ X-Git-Tag: v2.20.0-rc0~104^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b84c7838829f997e0a0028b678b7ae8f7a21cc62;p=thirdparty%2Fgit.git fsck: s/++i > 1/i++/ Signed-off-by: Junio C Hamano --- diff --git a/fsck.c b/fsck.c index 0f56977d6a..d44c46c527 100644 --- a/fsck.c +++ b/fsck.c @@ -485,7 +485,7 @@ static int fsck_walk_commit(struct commit *commit, void *data, struct fsck_optio if (name) { struct object *obj = &parents->item->object; - if (++counter > 1) + if (counter++) put_object_name(options, obj, "%s^%d", name, counter); else if (generation > 0)