From b84c7838829f997e0a0028b678b7ae8f7a21cc62 Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Wed, 24 Oct 2018 10:25:12 +0900 Subject: fsck: s/++i > 1/i++/ Signed-off-by: Junio C Hamano --- fsck.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fsck.c') 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) -- cgit v1.2.3