Re: [PATCH 1/4] diff.h: extend "flags" field to 64 bits because we're out of bits
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jun 6, 2016, 19:45 UTC
- Message-ID
- <xmqqfusqw17r.fsf@gitster.mtv.corp.google.com>
- In-Reply-To
- <20160606111643.7122-2-pclouds@gmail.com>
Nguyễn Thái Ngọc Duy <pclouds@gmail.com> writes:
> Current flags field is 32-bits, all used except one bit and we need one > more bit is needed for to toggle i-t-a behavior. The 9th bit could be > reused for this, but we could just extend it to 64 bits now to give room > for more future flags.
Isn't it a better option to add new things as separate words (or a separate bit:1 field)? Is this 32nd thing envisioned to be added going to be used everywhere like the existing flag bits, or can it be handled like "use_color", "break_opt", "show_rename_progress"?