Re: [PATCH v3 3/8] git: allow alias-shadowing deprecated builtins
On Mon, Sep 8, 2025, at 23:55, Junio C Hamano wrote:
Show 13 quoted lines
> Jeff King <peff@peff.net> writes:
>
>> cmd_struct were not the right spots. OTOH, it would probably not be that
>> hard to just do:
>>
>> static int is_deprecated_command(const char *cmd)
>> {
>> struct cmd_struct *builtin = get_builtin(cmd);
>> return builtin && (builtin->flags & DEPRECATED);
>>
>> }
>
> That was exactly what I had in mind.Thanks to both. I’ll use that suggestion.
--
Kristoffer Haugsbakk