Thread (1 message) 1 message, 1 author, 2017-10-31

Re: [PATCH 3/3] diff: convert flags to be stored in bitfields

From: Junio C Hamano <hidden>
Date: 2017-10-31 02:49:57

Junio C Hamano [off-list ref] writes:
Junio C Hamano [off-list ref] writes:
quoted
I still haven't brought myself to like the structure being passed by
value and the singleton diff_flags_cleared thing, but I suspect that
we may get used to them once we start using these.  I dunno.
Just bikeshedding, but I just had to prepare an evil merge to add a
new use of diff_flags_cleared to a codepath that evolved in a topic
still in flight, and realized that I really hate the name.  Perhaps
I wouldn't have hated it so much if it were named diff_flags_none or
diff_flags_empty, I guess.
As to the "passing by value" thing, as long as we have the _or()
helper function, no sensible person will add anything but a bitfield
into the structure, so I am fine with it.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help