]> Kevux Git Server - rit/commit
alias: prepare for subsection aliases
authorJonatan Holmgren <jonatan@jontes.page>
Wed, 18 Feb 2026 21:57:35 +0000 (22:57 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 19 Feb 2026 18:13:20 +0000 (10:13 -0800)
commit2ad33ea6b5c0a5670a757c9b594cc07321324e80
tree270f78e54bb8fc0672a9afc7baa789500cbdfc9d
parent3f0cdfa87907096ed7c6caa33fbf360e0e19844c
alias: prepare for subsection aliases

Switch git_unknown_cmd_config() from skip_prefix() to
parse_config_key() for alias parsing. This properly handles the
three-level config key structure and prepares for the new
alias.*.command subsection syntax in the next commit.

This is a compatibility break: the alias configuration parser used
to be overly permissive and accepted "alias.<subsection>.<key>" as
defining an alias "<subsection>.<key>". With this change,
alias.<subsection>.<key> entries are silently ignored (unless <key>
is "command", which will be given meaning in the next commit).

This behavior was arguably a bug, since config subsections were never
intended to work this way for aliases, and aliases with dots in their
names have never been documented or intentionally supported.

Signed-off-by: Jonatan Holmgren <jonatan@jontes.page>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
help.c