Re: allowing aliases to override builtins to support default options
- From
Sverre Rabbelier <srabbelier@gmail.com>
- Date
- Mar 6, 2009, 22:37 UTC
- Message-ID
- <fabb9a1e0903061437t2df5620bn58c6c087214f994b@mail.gmail.com>
- In-Reply-To
- <76718490903061430s2fbea2dfibe06282fd22b1588@mail.gmail.com>
Heya,
On Fri, Mar 6, 2009 at 23:30, Jay Soffian <jaysoffian@gmail.com> wrote:
> Most shells support overriding commands with aliases, and I'm not sure > why git needs to be more conservative than the shell. (Although, I > will say, I hate when vendors alias rm to "rm -i", etc...)
Hmmm, maybe we could require marking such an alias somehow, to signify that you're aware that you're overriding a builtin? Also, what would we do the alias 'foo' calling 'git foo'? Does it call the original command, or itself?
-- Cheers, Sverre Rabbelier