author | Petr Baudis <pasky@suse.cz> | |
Mon, 3 Jul 2006 20:48:03 +0000 (22:48 +0200) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Sun, 9 Jul 2006 08:20:01 +0000 (01:20 -0700) | ||
commit | 0270083ded143fd49841e3d3d0cac5eb06081d2a | |
tree | 960e1b85a2b18225a466bbf4aff040b27c581594 | tree | snapshot |
parent | 998c4daaf4a921fb03d478b50d6e06223326d7ef | commit | diff |
Make it possible to set up libgit directly (instead of from the environment)
This introduces a setup_git() function which is essentialy a (public)
backend for setup_git_env() which lets anyone specify custom sources
for the various paths instead of environment variables. Since the repositories
may get switched on the fly, this also updates code that caches paths to
invalidate them properly; I hope neither of those is a sweet spot.
It is used by Git.xs' xs__call_gate() to set up per-repository data
for libgit's consumption. No code actually takes advantage of it yet
but get_object() will in the next patches.
Signed-off-by: Petr Baudis <pasky@suse.cz>
Signed-off-by: Junio C Hamano <junkio@cox.net>
This introduces a setup_git() function which is essentialy a (public)
backend for setup_git_env() which lets anyone specify custom sources
for the various paths instead of environment variables. Since the repositories
may get switched on the fly, this also updates code that caches paths to
invalidate them properly; I hope neither of those is a sweet spot.
It is used by Git.xs' xs__call_gate() to set up per-repository data
for libgit's consumption. No code actually takes advantage of it yet
but get_object() will in the next patches.
Signed-off-by: Petr Baudis <pasky@suse.cz>
Signed-off-by: Junio C Hamano <junkio@cox.net>
cache.h | diff | blob | history | |
commit.c | diff | blob | history | |
environment.c | diff | blob | history | |
perl/Git.pm | diff | blob | history | |
perl/Git.xs | diff | blob | history | |
sha1_file.c | diff | blob | history | |
sha1_name.c | diff | blob | history |