Re: What's in git.git (stable)
- From
Nicolas Pitre <nico@cam.org>
- Date
- Dec 15, 2006, 16:08 UTC
- Message-ID
- <Pine.LNX.4.64.0612151106580.18171@xanadu.home>
- In-Reply-To
- <4582C3CE.3000902@op5.se>
On Fri, 15 Dec 2006, Andreas Ericsson wrote:
Show 16 quoted lines
> Nicolas Pitre wrote: > > On Fri, 15 Dec 2006, Jakub Narebski wrote: > > > > > It would be nice to have some generic place in git config to specify > > > default options to git commands (at least for interactive shell). It > > > cannot be done using aliases. Perhaps defaults.<command> config variable? > > > > I would say the alias facility has to be fixed then. > > > > In bash you can alias "ls" to "ls -l" and it just works. > > > > I think this is because git scripts that need a certain git command to work a > certain way don't want some alias to kick in and destroy things for them. > Shell-scripts would have the same problem if you alias "awk" to "grep" f.e., > which is why prudent shell-scripters use the "unalias -a" thing.
Wouldn't it be possible for aliases to be effective only when issued from an interactive shell? It is certainly true that aliases just make no sense in a script.