@@ -27,7 +27,7 @@ static void print_bloom_filter(struct bloom_filter *filter) {
27
27
}
28
28
printf ("Filter_Length:%d\n" , (int )filter -> len );
29
29
printf ("Filter_Data:" );
30
- for (i = 0 ; i < filter -> len ; i ++ ){
30
+ for (i = 0 ; i < filter -> len ; i ++ ) {
31
31
printf ("%02x|" , filter -> data [i ]);
32
32
}
33
33
printf ("\n" );
@@ -50,13 +50,13 @@ int cmd__bloom(int argc, const char **argv)
50
50
printf ("Murmur3 Hash with seed=0:0x%08x\n" , hashed );
51
51
}
52
52
53
- if (!strcmp (argv [1 ], "generate_filter" )) {
53
+ if (!strcmp (argv [1 ], "generate_filter" )) {
54
54
struct bloom_filter filter ;
55
55
int i = 2 ;
56
56
filter .len = (settings .bits_per_entry + BITS_PER_WORD - 1 ) / BITS_PER_WORD ;
57
57
filter .data = xcalloc (filter .len , sizeof (unsigned char ));
58
58
59
- if (!argv [2 ]){
59
+ if (!argv [2 ]) {
60
60
die ("at least one input string expected" );
61
61
}
62
62
@@ -68,7 +68,7 @@ int cmd__bloom(int argc, const char **argv)
68
68
print_bloom_filter (& filter );
69
69
}
70
70
71
- if (!strcmp (argv [1 ], "get_filter_for_commit" )) {
71
+ if (!strcmp (argv [1 ], "get_filter_for_commit" )) {
72
72
struct object_id oid ;
73
73
const char * end ;
74
74
if (parse_oid_hex (argv [2 ], & oid , & end ))
@@ -78,4 +78,4 @@ int cmd__bloom(int argc, const char **argv)
78
78
}
79
79
80
80
return 0 ;
81
- }
81
+ }
0 commit comments