diff options
author | Michael J Gruber <git@drmicha.warpmail.net> | 2011-04-27 10:36:27 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-04-27 10:50:05 -0700 |
commit | 7cf16a14f5c070f7b14cf28023769450133172ae (patch) | |
tree | 6d90ac2effe3cb7ec57ad9172b0563b11c9c35d8 /Documentation/config.txt | |
parent | 0daed41791373a5530c2b33e09b134ce8820e0c2 (diff) | |
download | git-7cf16a14f5c070f7b14cf28023769450133172ae.tar.gz |
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>
Diffstat (limited to 'Documentation/config.txt')
-rw-r--r-- | Documentation/config.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Documentation/config.txt b/Documentation/config.txt index 750c86d4f5..66281dd6bd 100644 --- a/Documentation/config.txt +++ b/Documentation/config.txt @@ -589,6 +589,8 @@ it will be treated as a shell command. For example, defining "gitk --all --not ORIG_HEAD". Note that shell commands will be executed from the top-level directory of a repository, which may not necessarily be the current directory. +'GIT_PREFIX' is set as returned by running 'git rev-parse --show-prefix' +from the original current directory. See linkgit:git-rev-parse[1]. am.keepcr:: If true, git-am will call git-mailsplit for patches in mbox format |