Re: [PATCH/RFC] git.c: support "!!" aliases that do not move cwd
- From
Duy Nguyen <pclouds@gmail.com>
- Date
- Oct 8, 2016, 00:32 UTC
- Message-ID
- <CACsJy8Bip0mscutDHib-2O1g+eN2twO0m+OyOg2BTUudjOdwfw@mail.gmail.com>
- In-Reply-To
- <f41a1371-7771-1960-27e0-cba0ee5b1461@gmail.com>
On Fri, Oct 7, 2016 at 10:55 PM, Jakub Narębski <jnareb@gmail.com> wrote:
Show 13 quoted lines
> W dniu 07.10.2016 o 16:19, Johannes Schindelin pisze: >> On Fri, 7 Oct 2016, Jakub Narębski wrote: > >>> 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...
It's c63437c (bash: improve aliased command recognition - 2010-02-23) isn't it? This may favor j6t's approach [1] because retrieving alias attributes is much easier.
[1] https://public-inbox.org/git/20161006190720.4ecf3ptl6msztoya@sigill.intra.peff.net/T/#mb1d7b8f31d595b05105b8ea2137756761e13dbf4
-- Duy