Re: [PATCH] git-status: Show empty directories
- From
Thomas Rast <trast@student.ethz.ch>
- Date
- Jun 9, 2012, 21:14 UTC
- Message-ID
- <877gvgrxw7.fsf@thomas.inf.ethz.ch>
- In-Reply-To
- <CAA3EhHJ9WnisF21iFfsjQKYFSY0t0jFvNV3aBjx0eGFPm8aoGg@mail.gmail.com>
Leila <muhtasib@gmail.com> writes:
Show 13 quoted lines
>> The structure is
>> if (...) {
>> /*code*/
>> } else {
>> /*code*/
>> }
>>
>> Do not forget braces in the "else" part as the firt block needs it.
>
> I was under the impression that one liners didn't require parenthesis
> according to the style guidelines. I didn't realize that if the 'if'
> required it, then the else required it. I will make that change and
> remember it for the future. Thanks!It's not required, there's plenty of precedent, even one case within wt-status.c, of '} else'. Try running
git grep '} else$'
--
Thomas Rast
trast@{inf,student}.ethz.ch