aboutsummaryrefslogtreecommitdiff
path: root/sha1_file.c
diff options
context:
space:
mode:
authorbrian m. carlson <sandals@crustytoothpaste.net>2017-11-12 21:28:51 +0000
committerJunio C Hamano <gitster@pobox.com>2017-11-13 13:20:44 +0900
commitabade65b79bdf505603b3699a2f9de75b318aa6e (patch)
tree9b67706dd5b7f8fb9edf63992816f9587ed20f48 /sha1_file.c
parent4123bcaed0897cad152c052a5fa4e499e4dafcf4 (diff)
downloadgit-abade65b79bdf505603b3699a2f9de75b318aa6e.tar.gz
git-abade65b79bdf505603b3699a2f9de75b318aa6e.tar.xz
setup: expose enumerated repo info
We enumerate several different items as part of struct repository_format, but then actually set up those values using the global variables we've initialized from them. Instead, let's pass a pointer to the structure down to the code where we enumerate these values, so we can later on use those values directly to perform setup. This technique makes it easier for us to determine additional items about the repository format (such as the hash algorithm) and then use them for setup later on, without needing to add additional global variables. We can't avoid using the existing global variables since they're intricately intertwined with how things work at the moment, but this improves things for the future. Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'sha1_file.c')
0 files changed, 0 insertions, 0 deletions