Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Bug report; git tab-completion on macOS within paths containing unicode characters
- X-seq: zsh-workers 52905
- From: "Jun. T" <takimoto-j@xxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: Bug report; git tab-completion on macOS within paths containing unicode characters
- Date: Tue, 30 Apr 2024 02:37:45 +0900
- Archived-at: <https://zsh.org/workers/52905>
- In-reply-to: <CAH+w=7bqvSC_dRuNJw6i=MeHeKAvjj_wTQXvkkgHLPyVvQRMjg@mail.gmail.com>
- List-id: <zsh-workers.zsh.org>
- References: <CAB+zqbrx+EsPSb-zMusCUN4Vp4E6e6rg=RG0pLjh4RdBt2ZS0A@mail.gmail.com> <CAH+w=7aumcauhMZWLAnT6mXVD_DE2bEdARE6fwAPORLAqWgKvQ@mail.gmail.com> <CAH+w=7aHgOJd=tAwfr7_FziNxeQC9dn_coioT0ndFBJhf68V3g@mail.gmail.com> <CAB+zqbqmturuSzuOPuHs91beERmu5XHp_Jm0E5mA2PBfib0b_g@mail.gmail.com> <CAH+w=7ZSmQZ6dJrN4u9DoPDPZvfGMiYBEp42FVzVhZgWYbchoA@mail.gmail.com> <CAH+w=7ZXGRuC_hvpMDgZJa+apfY008U8sbHYkwZWUaHA=0GsKw@mail.gmail.com> <CAH+w=7bqvSC_dRuNJw6i=MeHeKAvjj_wTQXvkkgHLPyVvQRMjg@mail.gmail.com>
> 2024/04/29 4:01、Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>のメール:
>
> <__git_files.txt>
With this patch, 'git add t<TAB>' apparently works, but
_complete_debug indicates that the problem still remains.
In __git_files (called from __git_other_files), 'git ls-files'
is called two times.
The first one is (omitting a few irrelevant options):
git ls-files --others -- ':\(icase\)\''/path/to/ü/test2/t\''\*'
and this gives nothing (no files, no error messages).
Then __git_files tries the second call:
git ls-files --others --
and this returns 'test.txt'. But this returns only the files in
the current directory and its subdirectories. So if we are in a
subdirectory then files in the top directory are not listed.
I tried
git ls-files path
with path in both in NFC and NFD (by using $'\x..'), but both
didn't work.
I guess this is a problem of git itself.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author