diff options
author | Brandon Williams <bmwill@google.com> | 2017-10-31 21:19:05 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-11-01 05:50:02 +0300 |
commit | 02f2f56bc377c287c411947d0e1482aac888f8db (patch) | |
tree | e03063fbe94146e5adfe73bb072c5aeeb60a9685 /builtin/log.c | |
parent | c9f348e926d300c4e254299b92e9bfe1678512d6 (diff) |
diff: convert flags to be stored in bitfields
We cannot add many more flags to the diff machinery due to the
limitations of the number of flags that can be stored in a single
unsigned int. In order to allow for more flags to be added to the diff
machinery in the future this patch converts the flags to be stored in
bitfields in 'struct diff_flags'.
Signed-off-by: Brandon Williams <bmwill@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/log.c')
-rw-r--r-- | builtin/log.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/builtin/log.c b/builtin/log.c index d81a09051e..dc28d43eb7 100644 --- a/builtin/log.c +++ b/builtin/log.c @@ -134,7 +134,8 @@ static void cmd_log_init_defaults(struct rev_info *rev) if (default_date_mode) parse_date_format(default_date_mode, &rev->date_mode); - rev->diffopt.touched_flags = 0; + + memset(&rev->diffopt.touched_flags, 0, sizeof(struct diff_flags)); } static void cmd_log_init_finish(int argc, const char **argv, const char *prefix, |