[PATCH v4 0/3] support UTF-8 in alias names
- From
Jonatan Holmgren <jonatan@jontes.page>
- Date
- Feb 11, 2026, 21:18 UTC
- Message-ID
- <20260211211810.278806-1-jonatan@jontes.page>
- In-Reply-To
- <3124b359-2929-4f3f-9ac6-793277fe422b@jontes.page>
This series enables UTF-8 and special characters in Git alias names by using config subsection syntax: `[alias "name"] command = value`. This allows non-English speakers to create aliases in their native languages while maintaining backward compatibility with the traditional syntax.
Changes since v3:
- Removed redundant !value check in data->alias branch, as Junio noted that git_config_string() already handles this case
- Added config_error_nonbool() in data->list branch so misconfigured aliases (without values) are caught immediately instead of silently adding broken entries that callers must handle
- Simplified code: consolidated error checking, removed conditional item->util assignment in favor of early error return
- Added test case for value-less alias error handling
- Improved test robustness by using intermediate file + test_grep instead of piping to grep
Jonatan Holmgren (3): help: use list_aliases() for alias listing alias: prepare for subsection aliases alias: support non-alphanumeric names via subsection syntax
Documentation/config/alias.adoc | 43 ++++++++++++++++---- alias.c | 38 ++++++++++++++++-- help.c | 39 +++++++++--------- t/t0014-alias.sh | 71 +++++++++++++++++++++++++++++++++ 4 files changed, 159 insertions(+), 32 deletions(-)
-- 2.53.0