mirror of
https://github.com/git/git.git
synced 2026-01-10 18:20:27 +00:00
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++)"
This commit is contained in:
5
contrib/coccinelle/preincr.cocci
Normal file
5
contrib/coccinelle/preincr.cocci
Normal file
@@ -0,0 +1,5 @@
|
||||
@ preincrement @
|
||||
identifier i;
|
||||
@@
|
||||
- ++i > 1
|
||||
+ i++
|
||||
Reference in New Issue
Block a user