From: Petr Baudis Date: Sun, 04 Jun 2006 22:19:30 GMT Subject: Re: [PATCH] Support for configurable git command aliases (v2) Message-ID: <20060604221930.GW10488@pasky.or.cz> In-Reply-To: Hi, Dear diary, on Mon, Jun 05, 2006 at 12:11:14AM CEST, I got a letter where Martin Mares said that... > > And I forgot to mention that it also adds the interactivity test > > requested by Janek - aliases are now interpreted only when stdout is a > > tty. > > Does this really make sense? Why should an alias stop working > if I happen to redirect its output? Or am I missing something? make [alias] log = log --pretty=raw and then any script that works on git log output might get very confused. Then again, as pointed out on IRC you might get very confused as well if you do git log | less. Besides, this is not going to help you with aliases like commit = commit -a. So, some other possibilities are to: (i) Test stdin. Even in scripts, stdin is frequently terminal, but you might add