Re: [PATCH v2 3/3][GSOC] fsck: replace if-statements to logical expressions

2014-03-19 Thread Junio C Hamano
Hiroyuki Sano writes: > There were two different ways to check flag values, one way is > using if-statement, and the other way is using logical expression. > > To make sensible, replace if-statements to logical expressions in > fsck_tree(). The change described by these two paragraphs makes sens

[PATCH v2 3/3][GSOC] fsck: replace if-statements to logical expressions

2014-03-19 Thread Hiroyuki Sano
There were two different ways to check flag values, one way is using if-statement, and the other way is using logical expression. To make sensible, replace if-statements to logical expressions in fsck_tree(). When checking "has_dot" and "has_dotdot", use is_dot_or_dotdot() instead of strcmp() to