summaryrefslogtreecommitdiff
path: root/commit-graph.c
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2025-02-07 12:03:38 +0100
committerJunio C Hamano <gitster@pobox.com>2025-02-28 13:54:11 -0800
commitb411ed60c7438eda3fd85a308050e88159f275fd (patch)
tree051e974975806fc76199efe7fbe3693b7dc03a9c /commit-graph.c
parent88dd321cfedc6ee190dfafe4670a83ea33cdf4a3 (diff)
repo-settings: introduce function to clear struct
We don't provide a way to clear a `struct repo_settings`, and instead open-code this in `repo_clear()`. This is mixing up concerns and means that developers have to touch multiple files whenever they add a new field to the structure in case the associated resources need to be released. Provide a new `repo_settings_clear()` function to improve this. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit-graph.c')
0 files changed, 0 insertions, 0 deletions