diff options
author | Junio C Hamano <gitster@pobox.com> | 2018-10-24 03:25:12 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-10-24 03:25:12 +0200 |
commit | b84c7838829f997e0a0028b678b7ae8f7a21cc62 (patch) | |
tree | 41a42737c42e8ee617a03e806a06015350dc5bd3 /fsck.c | |
parent | cocci: simplify "if (++u > 1)" to "if (u++)" (diff) | |
download | git-b84c7838829f997e0a0028b678b7ae8f7a21cc62.tar.xz git-b84c7838829f997e0a0028b678b7ae8f7a21cc62.zip |
fsck: s/++i > 1/i++/
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'fsck.c')
-rw-r--r-- | fsck.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |