support UTF-8 in alias names
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | help: use list_aliases() for alias listingalias.c help.c | +10 | 1 reply | |
| 2/3 | alias: prepare for subsection aliaseshelp.c | +7 | 0 replies | |
| 3/3 | alias: support non-alphanumeric names via subsection syntaxDocumentation/ alias.c help.c +1 more | +138 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/3] support UTF-8 in alias names
Hi all,
This v3 addresses all feedback from Junio on v2. Changes since v2:
- Split into three commits: a preparatory refactoring, a compatibility- breaking change separated explicitly, and the main feature
- Preserved error checking for value-less alias config (config_error_nonbool)
- Fixed behavior when !value to preserve adding items to list while keeping util as NULL
- Improved commit messages to say "ASCII alphanumeric" and better explain that aliases are implemented as config variable names
- Tests now properly verify value-less command key handling
The implementation follows Peff's suggestion to use config subsections rather than modifying the config key syntax. This allows arbitrary bytes in alias names while maintaining backward compatibility.
Suggested release note blurb:
* Git aliases now support UTF-8 characters and special characters in alias names through subsection syntax: [alias "name"] command = value. This enables aliases in non-English languages. The traditional syntax (without subsection, e.g., [alias] co = checkout) continues to work.
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 | 40 +++++++++++++++++++--- help.c | 39 +++++++++++---------- t/t0014-alias.sh | 60 +++++++++++++++++++++++++++++++++ 4 files changed, 150 insertions(+), 32 deletions(-)
Signature · 1 line
2.53.0