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>
This commit is contained in:
committed by
Junio C Hamano
parent
c9f348e926
commit
02f2f56bc3
@ -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,
|
||||
|
||||
Reference in New Issue
Block a user