Re: [PATCH 3/3] help: respect aliases
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Feb 26, 2008, 15:15 UTC
- Message-ID
- <alpine.LSU.1.00.0802261515210.22527@racer.site>
- In-Reply-To
- <76718490802260656s459e9241ie2a2d6b255c77fa4@mail.gmail.com>
Hi,
On Tue, 26 Feb 2008, Jay Soffian wrote:
Show 20 quoted lines
> On Tue, Feb 26, 2008 at 7:43 AM, Johannes Schindelin > <Johannes.Schindelin@gmx.de> wrote: > > > > On Sun, 24 Feb 2008, Jay Soffian wrote: > > > > > This too would be less ugly as a built-in: > > > > > > [elided so as not to burn anyone's eyes out again :-) -- jay] > > > > Wow. This would look less ugly as an alias like this, too: > > > > alias = "!sh -c 'case $# in \ > > 0) git config --get-regexp \"^alias\\.\" | sed \"s/^alias\\.//\";; \ > > *) git config \"alias.$0\" ;; \ > > esac'" > > > > which incidentally fixes a bug in your alias: you ignore $0 which is the > > first parameter when using the sh -c '' idiom. > > Test mine. Test yours. See which works. :-)
I tested only mine. It works.
Ciao, Dscho