Re: [PATCH v3 3/8] git: allow alias-shadowing deprecated builtins
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Sep 8, 2025, 21:55 UTC
- Message-ID
- <xmqq348wwqwb.fsf@gitster.g>
- In-Reply-To
- <20250908211141.GB1327610@coredump.intra.peff.net>
Jeff King <peff@peff.net> writes:
Show 9 quoted lines
> 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.