1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-02 07:51:09 +02:00

53825: fix regexp in in __git_extract_aliases

This commit is contained in:
Frederick Zhang 2025-08-04 00:03:34 +09:00 committed by Jun-ichi Takimoto
parent 33aafecc7e
commit 6e6c12c81f
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2025-08-04 Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>
* Frederick Zhang: 53825: Completion/Unix/Command/_git: fix
regexp in __git_extract_aliases
2025-07-18 Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>
* 53821: Doc/Zsh/builtins.yo, Doc/Zsh/calsys.yo, Doc/Zsh/compctl.yo,

View file

@ -6561,7 +6561,7 @@ __git_aliases () {
(( $+functions[__git_extract_aliases] )) ||
__git_extract_aliases () {
local -a tmp
tmp=(${${(0)"$(_call_program aliases "git config -z --get-regexp '^alias.'")"}#alias.})
tmp=(${${(0)"$(_call_program aliases "git config -z --get-regexp '^alias\.'")"}#alias.})
if (( ${#tmp} > 0 )); then
aliases=(${^tmp/$'\n'/:alias for \'}\')
else