Re: [PATCH 1/3] completion: fix alias listings with newlines
- From
Stephen Boyd <bebarino@gmail.com>
- Date
- Oct 8, 2009, 07:34 UTC
- Message-ID
- <4ACD961D.9080401@gmail.com>
- In-Reply-To
- <20091008042917.GX9261@spearce.org>
Shawn O. Pearce wrote:
> > Yes, we should try to avoid spawning a process here, it fires on > each completion attempt if I recall. >
Ok. It looks like it fires on every completion with no command (i.e. git <TAB><TAB>). I don't particularly like my solution anyways, and this has existed for a long time (56fc25f maybe?) with no one noticing. A fix for it is probably not too pressing.
I found another problem, [ARGS] and COMMAND show up in git <TAB><TAB>. Looks like it's due to the wrapping of git's usage string.
Show 6 quoted lines
>
> Or a format string with a language based escape like for-each-ref
> supports? Might make it easier to use git config in scripts if we
> can write things like:
>
> git config --format='$data{%(key)}=%(value);' --perlThis sounds reasonable, but also like more work ;-)