Make unpack_trees_options bit flags actual bitfields
Instead of wasting space with whole integers for a single bit. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Linus Torvalds committed
Mar 21, 2008 at 13:14 UTC
75dc6c7cb879d0018893baf6ba6b49d1f16e1b92
1 file changed
+10
-10
unpack-trees.h
+10
-10
@@ -9,16 +9,16 @@ typedef int (*merge_fn_t)(struct cache_entry **src,
9
struct unpack_trees_options *options);
10
11
struct unpack_trees_options {
12
- int reset;
13
- int merge;
14
- int update;
15
- int index_only;
16
- int nontrivial_merge;
17
- int trivial_merges_only;
18
- int verbose_update;
19
- int aggressive;
20
- int skip_unmerged;
21
- int gently;
12
+ unsigned int reset:1,
13
+ merge:1,
14
+ update:1,
15
+ index_only:1,
16
+ nontrivial_merge:1,
17
+ trivial_merges_only:1,
18
+ verbose_update:1,
19
+ aggressive:1,
20
+ skip_unmerged:1,
21
+ gently:1;
22
const char *prefix;
23
int pos;
24
struct dir_struct *dir;