Re: [PATCH v3 2/2] completion: fix bugs with slashes in remote names
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Mar 14, 2025, 22:18 UTC
- Message-ID
- <xmqqo6y3dzno.fsf@gitster.g>
- In-Reply-To
- <c80d20d93c92422437150084f402ac36@mandelberg.org>
David Mandelberg <david@mandelberg.org> writes:
> + __git for-each-ref --format='%(refname)' 'refs/remotes/**' |
Just a bit of curiosity, but how would this be different from using
__git for-each-ref --format='%(refname)' refs/remotes/
i.e. the prefix match, here? Does the wildmatcher clever enough to optimize "**" away and make it just to iterate over refs/remotes/ hierarchy without filtering anything?