author | Michael J Gruber <git@drmicha.warpmail.net> | |
Wed, 27 Apr 2011 08:36:27 +0000 (10:36 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 27 Apr 2011 17:50:05 +0000 (10:50 -0700) | ||
commit | 7cf16a14f5c070f7b14cf28023769450133172ae | |
tree | 6d90ac2effe3cb7ec57ad9172b0563b11c9c35d8 | tree | snapshot |
parent | 0daed41791373a5530c2b33e09b134ce8820e0c2 | commit | diff |
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>
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 | diff | blob | history | |
git.c | diff | blob | history | |
t/t1020-subdirectory.sh | diff | blob | history |