Re: Help creating git alias
- From
David Aguilar <davvid@gmail.com>
- Date
- Oct 31, 2013, 18:15 UTC
- Message-ID
- <20131031181509.GB39079@gmail.com>
- In-Reply-To
- <xmqqd2ml8gbs.fsf@gitster.dls.corp.google.com>
On Thu, Oct 31, 2013 at 11:07:19AM -0700, Junio C Hamano wrote:
Show 5 quoted lines
> David Aguilar <davvid@gmail.com> writes: > > > A-ha.. I think adding the chdir to alias is possible using a function. > > You do not have to use a function to do so, no?
Right, of course.
So something like:
[alias]
example = "!cd ${GIT_PREFIX:-.} && git log \"$@\""should do the trick.
-- David