Refactor list of of repo-local env vars
commit48a7c1c49d675fa37b609b499dd9e27439ec7f51
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Wed, 24 Feb 2010 23:34:14 +0000 (25 00:34 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 25 Feb 2010 00:24:25 +0000 (24 16:24 -0800)
tree852effac234c99d76e9a3cacbabdd686acd7832f
parente923eaeb901ff056421b9007adcbbce271caa7b6
Refactor list of of repo-local env vars

Move the list of GIT_* environment variables that are local to a
repository into a static list in environment.c, as it is also
useful elsewhere. Also add the missing GIT_CONFIG variable to the
list.

Make it easy to use the list both by NULL-termination and by size;
the latter (excluding the terminating NULL) is stored in the
local_repo_env_size define.

Signed-off-by: Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
cache.h
connect.c
environment.c