Re: [PATCH v10 12/12] bisect--helper: `get_terms` & `bisect_terms` shell function in C
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jul 26, 2016, 17:32 UTC
- Message-ID
- <xmqqmvl41f0x.fsf@gitster.mtv.corp.google.com>
- In-Reply-To
- <f6657922-555e-affa-8904-678bc7ee3f71@web.de>
Torsten Bögershausen <tboegi@web.de> writes:
Show 16 quoted lines
> On 07/25/2016 06:53 PM, Junio C Hamano wrote:
>> Pranit Bauva <pranit.bauva@gmail.com> writes:
>>
>>>>> >>> +enum terms_defined {
>>>>> >>> + TERM_BAD = 1,
>>>>> >>> + TERM_GOOD = 2,
>>>>> >>> + TERM_NEW = 4,
>>>>> >>> + TERM_OLD = 8
>>>>> >>> +};
>>>>> >>> +
>>>> >> ...
> Is there any risk that a more generic term like "TERM_BAD" may collide
> with some other definition some day ?
>
> Would it make sense to call it GIT_BISECT_TERM_BAD, GBS_TERM_BAD,
> BIS_TERM_BAD or something more unique ?I am not sure if the scope of these symbols would ever escape outside bisect-helper.c (and builtin/bisect.c eventually when we retire git-bisect.sh), but BISECT_TERM_{GOOD,BAD,OLD,NEW} would not be too bad.