Thread (29 messages) 29 messages, 8 authors, 2016-08-11

Re: What's in git.git (stable)

From: Andreas Ericsson <hidden>
Date: 2016-08-11 20:46:16

Possibly related (same subject, not in this thread)

Nicolas Pitre wrote:
On Fri, 15 Dec 2006, Jakub Narebski wrote:
quoted
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.

Anyways, this should be largely solvable by inventing a "--no-aliases" 
switch to the git wrapper, or by the scripts calling the programs they 
need directly which, afaik, bypasses the alias logic. If it doesn't, it 
should.

-- 
Andreas Ericsson                   andreas.ericsson@op5.se
OP5 AB                             www.op5.se
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help