handle_alias: provide GIT_PREFIX to !alias
authorMichael J Gruber <git@drmicha.warpmail.net>
Wed, 27 Apr 2011 08:36:27 +0000 (10:36 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 27 Apr 2011 17:50:05 +0000 (10:50 -0700)
commit7cf16a14f5c070f7b14cf28023769450133172ae
tree6d90ac2effe3cb7ec57ad9172b0563b11c9c35d8
parent0daed41791373a5530c2b33e09b134ce8820e0c2
handle_alias: provide GIT_PREFIX to !alias

Provide an environment variable GIT_PREFIX which contains the subdirectory
from which a !alias was called (i.e. 'git rev-parse --show-prefix') since
these cd to the to level directory before they are executed.

Signed-off-by: Michael J Gruber <git@drmicha.warpmail.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/config.txt
git.c
t/t1020-subdirectory.sh