summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2018-10-24 01:25:12 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-10-24 01:25:12 (GMT)
commitb84c7838829f997e0a0028b678b7ae8f7a21cc62 (patch)
tree41a42737c42e8ee617a03e806a06015350dc5bd3
parent05b4ed61f4e669da839892e03dad70e15d9a4cd3 (diff)
downloadgit-b84c7838829f997e0a0028b678b7ae8f7a21cc62.zip
git-b84c7838829f997e0a0028b678b7ae8f7a21cc62.tar.gz
git-b84c7838829f997e0a0028b678b7ae8f7a21cc62.tar.bz2
fsck: s/++i > 1/i++/
Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r--fsck.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fsck.c b/fsck.c
index 0f56977..d44c46c 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)