Skip to content

Refactor Config to extract DefaultConfig and RepositoryConfig subclasses - #1501

Merged
jdavid merged 1 commit into
libgit2:masterfrom
beamerblvd:add-config-subclasses
Oct 20, 2026
Merged

jdavid merged 1 commit into
libgit2:masterfrom
beamerblvd:add-config-subclasses

Conversation

@beamerblvd

Copy link
Copy Markdown
Contributor

This refactors Config to extract two new subclasses, DefaultConfig and RepositoryConfig, which are used to logically and semantically indicate the purpose of a given Config object. This also substantially improves the documentation for the existing Config class.

This pull request, which is a subset of the changes initially proposed in #1473, should be the last refactor step in preparation for implementing that new feature.

This refactors `Config` to extract two new subclasses, `DefaultConfig` and `RepositoryConfig`, which are used to logically and semantically indicate the purpose of a given `Config` object. This also substantially improves the documentation for the existing `Config` class.
@jdavid
jdavid merged commit 9a4694a into libgit2:master Oct 20, 2026
17 of 18 checks passed
@beamerblvd
beamerblvd deleted the add-config-subclasses branch October 20, 2026 17:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants