]> git.ipfire.org Git - thirdparty/git.git/commit - diff.h
diff.h: avoid bit fields in struct diff_flags
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Sun, 27 Jan 2019 00:35:30 +0000 (07:35 +0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 28 Jan 2019 00:28:18 +0000 (16:28 -0800)
commit2b393ef357d2fe466ba7097c9cc3ec92798ec05f
tree031098f18c39bc5b148ba6feae5df090c67797d2
parent4a1b13a3972efb0cf90143ebba88e309af2f41be
diff.h: avoid bit fields in struct diff_flags

Bitfield addresses cannot be passed around in a pointer. This makes it
hard to use parse-options to set/unset them. Turn this struct to
normal integers. This of course increases the size of this struct
multiple times, but since we only have a handful of diff_options
variables around, memory consumption is not at all a concern.

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
diff.h