]> git.ipfire.org Git - thirdparty/git.git/commit - cache.h
repository.c: move env-related setup code back to environment.c
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Sat, 3 Mar 2018 11:35:55 +0000 (18:35 +0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 5 Mar 2018 19:14:03 +0000 (11:14 -0800)
commit357a03ebe9e04329705a46ff36d526c5ab0c3ebc
treec95809c925390ceae12fa925af722576c5675afe
parentb2f0eceecf266e60fa95970e0973a8f23f911fb1
repository.c: move env-related setup code back to environment.c

It does not make sense that generic repository code contains handling
of environment variables, which are specific for the main repository
only. Refactor repo_set_gitdir() function to take $GIT_DIR and
optionally _all_ other customizable paths. These optional paths can be
NULL and will be calculated according to the default directory layout.

Note that some dead functions are left behind to reduce diff
noise. They will be deleted in the next patch.

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
cache.h
environment.c
repository.c
repository.h
setup.c