On Thu, Oct 31, 2013 at 2:15 PM, David Aguilar <dav...@gmail.com> wrote:
> On Thu, Oct 31, 2013 at 11:07:19AM -0700, Junio C Hamano wrote:
>> David Aguilar <dav...@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

Awesome! It does work!
One note: i tried the ${GIT_PREFIX:-.}  and ${GIT_PREFIX} and it seems
to give the same results. What is the expected difference here?

Thank you!
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to