allowing aliases to override builtins to support default options
- From
Jay Soffian <jaysoffian@gmail.com>
- Date
- Mar 6, 2009, 22:30 UTC
- Message-ID
- <76718490903061430s2fbea2dfibe06282fd22b1588@mail.gmail.com>
Currently git does not allow aliases to override builtins. I understand the reasoning behind this, but I wonder if it's overly conservative.
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...)
It seems like this would be an elegant way to support default options. Were it to be supported, it should probably have an escape hatch, such as git --no-alias COMMAND, and it should probably only apply to porcelains.
Thoughts?
j.