[PATCH v7 0/4] support UTF-8 in alias names
- From
Jonatan Holmgren <jonatan@jontes.page>
- Date
- Feb 18, 2026, 21:57 UTC
- Message-ID
- <20260218215737.1181147-1-jonatan@jontes.page>
- In-Reply-To
- <3124b359-2929-4f3f-9ac6-793277fe422b@jontes.page>
Hi all!
This series adds support for non-alphanumeric (including UTF-8) characters in alias names by allowing aliases to be defined using git-config's subsection syntax.
Changes since v6: Reverted the --aliases-for-completion output format to use a newline as the field separator between name and value within each NUL-terminated record (name\nvalue\0). In v6 I changed this to use NUL for both separators, but this diverges from the convention established by git config -z, which outputs key\nvalue\0. Matching that convention is the right call here.
Thanks!
Jonatan Holmgren (4): help: use list_aliases() for alias listing alias: prepare for subsection aliases alias: support non-alphanumeric names via subsection syntax completion: fix zsh alias listing for subsection aliases
Documentation/config/alias.adoc | 50 ++++++++++++++++--- alias.c | 42 +++++++++++++--- builtin/help.c | 13 +++++ contrib/completion/git-completion.zsh | 2 +- help.c | 39 +++++++-------- t/t0014-alias.sh | 71 +++++++++++++++++++++++++++ 6 files changed, 182 insertions(+), 35 deletions(-)
-- 2.53.0.122.g3abf75d576