Re: [PATCH/RFC] git.c: support "!!" aliases that do not move cwd
- From
Jakub Narębski <jnareb@gmail.com>
- Date
- Oct 7, 2016, 15:55 UTC
- Message-ID
- <f41a1371-7771-1960-27e0-cba0ee5b1461@gmail.com>
- In-Reply-To
- <alpine.DEB.2.20.1610071616390.35196@virtualbox>
W dniu 07.10.2016 o 16:19, Johannes Schindelin pisze:
> On Fri, 7 Oct 2016, Jakub Narębski wrote:
Show 5 quoted lines
>> Note that we would have to teach git completion about new syntax; >> or new configuration variable if we go that route. > > Why would we? Git's completion does not expand aliases, it only completes > the aliases' names, not their values.
Because Git completion finds out which _options_ and _arguments_ to complete for an alias based on its expansion.
Yes, this is nice bit of trickery...
-- Jakub Narębski