wrap shared_repository global in get/set accessors
commit7875acb6ecf85a7dc29554d193955ce5e265764f
authorJeff King <peff@peff.net>
Fri, 11 Mar 2016 22:36:49 +0000 (11 17:36 -0500)
committerJunio C Hamano <gitster@pobox.com>
Fri, 11 Mar 2016 23:02:17 +0000 (11 15:02 -0800)
tree58b24619636ee321eaea313575b92e83dc636f0e
parent4b0d1eebe95b8ed187ff06ae46d69d517c2b759f
wrap shared_repository global in get/set accessors

It would be useful to control access to the global
shared_repository, so that we can lazily load its config.
The first step to doing so is to make sure all access
goes through a set of functions.

This step is purely mechanical, and should result in no
change of behavior.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/init-db.c
cache.h
environment.c
path.c
setup.c