standardize brace placement in struct definitions
In a struct definitions, unlike functions, the prevailing style is for the opening brace to go on the same line as the struct name, like so: struct foo { int bar; char *baz; }; Indeed, grepping for 'struct [a-z_]* {$' yields about 5 times as many matches as 'struct [a-z_]*$'. Linus sayeth: Heretic people all over the world have claimed that this inconsistency is ... well ... inconsistent, but all right-thinking people know that (a) K&R are _right_ and (b) K&R are right. Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
c6c8d0b797
commit
9cba13ca5d
@ -3,8 +3,7 @@
|
||||
#include "walker.h"
|
||||
#include "http.h"
|
||||
|
||||
struct alt_base
|
||||
{
|
||||
struct alt_base {
|
||||
char *base;
|
||||
int got_indices;
|
||||
struct packed_git *packs;
|
||||
@ -18,8 +17,7 @@ enum object_request_state {
|
||||
COMPLETE
|
||||
};
|
||||
|
||||
struct object_request
|
||||
{
|
||||
struct object_request {
|
||||
struct walker *walker;
|
||||
unsigned char sha1[20];
|
||||
struct alt_base *repo;
|
||||
|
Reference in New Issue
Block a user