From: Kjetil Barvik Date: Sun, 07 Jun 2009 21:25:47 GMT Subject: Re: [PATCH] symlinks.c: small style cleanup Message-ID: <86fxebwxb8.fsf@broadpark.no> In-Reply-To: <7veitwatvy.fsf@alter.siamese.dyndns.org> Junio C Hamano writes: > Johannes Schindelin writes: > >> On Sun, 7 Jun 2009, Kjetil Barvik wrote: >> >>> Add {}-braces around an else-part, where the if-part already has >>> {}-braces. >> >> This is the wrong way round. We prefer _not_ to add unnecessary braces, >> but do tolerate them from time to time. > > I am at fault not spelling this out so far, but we prefer to match the > kernel style of having {} around a single-statment "else" body when the > corresponding "if" side needs one (or vice versa). OK! I can also say that it looks better in my eyes to do it like this, so, Junio, please use this version of the patch, and forget about v2 of the patch posted some time later. -- kjetil