diff options
author | Junio C Hamano <gitster@pobox.com> | 2018-10-30 07:43:48 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-10-30 07:43:48 +0100 |
commit | da3e0752cdfe7ae535b4e740f162f1e4926d4201 (patch) | |
tree | 6c2f666dc5962b86db4ffe24532f06870b57ba4f /fsck.c | |
parent | Merge branch 'ss/rename-tests' (diff) | |
parent | fsck: s/++i > 1/i++/ (diff) | |
download | git-da3e0752cdfe7ae535b4e740f162f1e4926d4201.tar.xz git-da3e0752cdfe7ae535b4e740f162f1e4926d4201.zip |
Merge branch 'jc/cocci-preincr'
Code cleanup.
* jc/cocci-preincr:
fsck: s/++i > 1/i++/
cocci: simplify "if (++u > 1)" to "if (u++)"
Diffstat (limited to 'fsck.c')
-rw-r--r-- | fsck.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -479,7 +479,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) |