diff options
| author | Jonatan Holmgren <jonatan@jontes.page> | 2026-02-18 22:57:35 +0100 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2026-02-19 10:13:20 -0800 |
| commit | 2ad33ea6b5c0a5670a757c9b594cc07321324e80 (patch) | |
| tree | 270f78e54bb8fc0672a9afc7baa789500cbdfc9d /contrib/persistent-https | |
| parent | 3f0cdfa87907096ed7c6caa33fbf360e0e19844c (diff) | |
| download | git-2ad33ea6b5c0a5670a757c9b594cc07321324e80.tar.gz git-2ad33ea6b5c0a5670a757c9b594cc07321324e80.zip | |
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>
Diffstat (limited to 'contrib/persistent-https')
0 files changed, 0 insertions, 0 deletions
