]> git.ipfire.org Git - thirdparty/git.git/commit - fsck.c
fsck: use bitwise-or assignment operator to set flag
authorHiroyuki Sano <sh19910711@gmail.com>
Wed, 19 Mar 2014 23:02:04 +0000 (08:02 +0900)
committerJunio C Hamano <gitster@pobox.com>
Thu, 20 Mar 2014 18:20:48 +0000 (11:20 -0700)
commiteffd12ec876df016d4346fee0d3d6bf31308fa11
tree5e09d92ad35c76c32359462a6767b717d5145746
parent7bbc4e8fdb33e0a8e42e77cc05460d4c4f615f4d
fsck: use bitwise-or assignment operator to set flag

fsck_tree() has two different ways to set a flag variable, either by
using a if-statement that guards an assignment, or by using a
bitwise-or assignment operator.  Most are done with the former, and
only one variable is assigned with the latter.

Since all the conditions are short-and-sweet, we can afford to
uniformly use the latter style, which makes the resulting code
shorter and easier to read.

Signed-off-by: Hiroyuki Sano <sh19910711@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
fsck.c