提交 196afc43 编写于 作者: J Junio C Hamano

Merge branch 'jc/cocci-preincr' into maint

Code cleanup.

* jc/cocci-preincr:
  fsck: s/++i > 1/i++/
  cocci: simplify "if (++u > 1)" to "if (u++)"
@ preincrement @
identifier i;
@@
- ++i > 1
+ i++
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册