]> Kevux Git Server - rit/commit
environment: move access to core.maxTreeDepth into repo settings
authorRené Scharfe <l.s.r@web.de>
Fri, 9 Jan 2026 21:30:12 +0000 (22:30 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sat, 10 Jan 2026 02:36:16 +0000 (18:36 -0800)
commite691395365b871608551bfbe20982b53140a50f0
tree29d332eb774487b760a9cea3224e8265965d32ed
parentd529f3a197364881746f558e5652f0236131eb86
environment: move access to core.maxTreeDepth into repo settings

The config setting core.maxTreeDepth is stored in a global variable and
populated by the function git_default_core_config.  This won't work if
we need to access multiple repositories with different values of that
setting in the same process.  Store the setting in struct repo_settings
instead and track it separately for each repository.

Signed-off-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
environment.c
environment.h
git-compat-util.h
list-objects.c
repo-settings.c
repo-settings.h
tree-diff.c
tree-walk.c
tree.c