author | David Reiss <dreiss@facebook.com> | |
Tue, 20 May 2008 06:49:26 +0000 (23:49 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Fri, 23 May 2008 21:15:01 +0000 (14:15 -0700) | ||
commit | 0454dd93bfb2334355ec62fff670d8c6cb3570a1 | |
tree | 8c0b1ada7cce01e71c2a2bbed0cfd23a26db8ba2 | tree | snapshot |
parent | d553e737897e8edbbc2092bf345fc58b2dae5251 | commit | diff |
Add support for GIT_CEILING_DIRECTORIES
Make git recognize a new environment variable that prevents it from
chdir'ing up into specified directories when looking for a GIT_DIR.
Useful for avoiding slow network directories.
For example, I use git in an environment where homedirs are automounted
and "ls /home/nonexistent" takes about 9 seconds. Setting
GIT_CEILING_DIRS="/home" allows "git help -a" (for bash completion) and
"git symbolic-ref" (for my shell prompt) to run in a reasonable time.
Signed-off-by: David Reiss <dreiss@facebook.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Make git recognize a new environment variable that prevents it from
chdir'ing up into specified directories when looking for a GIT_DIR.
Useful for avoiding slow network directories.
For example, I use git in an environment where homedirs are automounted
and "ls /home/nonexistent" takes about 9 seconds. Setting
GIT_CEILING_DIRS="/home" allows "git help -a" (for bash completion) and
"git symbolic-ref" (for my shell prompt) to run in a reasonable time.
Signed-off-by: David Reiss <dreiss@facebook.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git.txt | diff | blob | history | |
cache.h | diff | blob | history | |
path.c | diff | blob | history | |
setup.c | diff | blob | history | |
t/t0060-path-utils.sh | diff | blob | history | |
t/t1504-ceiling-dirs.sh | [new file with mode: 0755] | blob |
t/test-lib.sh | diff | blob | history | |
test-path-utils.c | diff | blob | history |