]> Kevux Git Server - rit/commit
alias: restore support for simple dotted aliases
authorJonatan Holmgren <jonatan@jontes.page>
Fri, 24 Apr 2026 16:17:00 +0000 (18:17 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sat, 25 Apr 2026 10:22:52 +0000 (19:22 +0900)
commit21186cf9bbe5f1d8a039286027ebb4f33c7f85d1
tree725e0e8ccc3adac6672bfe53e133512193d3fc15
parent73cc549559398626f33063f64ece9e558e654c95
alias: restore support for simple dotted aliases

Historically, config entries like alias.foo.bar expanded the alias
"foo.bar". The subsection-based alias syntax introduced in
ac1f12a9de (alias: support non-alphanumeric names via subsection
syntax, 2026-02-18) broke that behavior by treating such entries as
if they were subsection syntax.

Restore support for the old dotted form by falling back to the full
name when the final key is not "command". Add tests covering execution
and help output for simple dotted aliases.

Reported-by: Michael Grossfeld <michael.grossfeld@amd.com>
Helped-by: Jeff King <peff@peff.net>
Signed-off-by: Jonatan Holmgren <jonatan@jontes.page>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
alias.c
help.c
t/t0014-alias.sh