diff options
author | Patrick Steinhardt <ps@pks.im> | 2019-07-18 13:53:41 +0200 |
---|---|---|
committer | Patrick Steinhardt <ps@pks.im> | 2019-07-18 13:53:41 +0200 |
commit | 658022c41affc7d9b5bd9b84b1d75ec909b820c6 (patch) | |
tree | 031b076abf8466b6f449fbe1e54d1c98c95eb061 /src/ignore.c | |
parent | 343fb83a4d3550fe6464ac52a9f4e57bdb6d5b24 (diff) | |
download | libgit2-658022c41affc7d9b5bd9b84b1d75ec909b820c6.tar.gz |
configuration: cvar -> configmap
`cvar` is an unhelpful name. Refactor its usage to `configmap` for more
clarity.
Diffstat (limited to 'src/ignore.c')
-rw-r--r-- | src/ignore.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ignore.c b/src/ignore.c index 0fdadfb13..825ab3cf9 100644 --- a/src/ignore.c +++ b/src/ignore.c @@ -172,7 +172,7 @@ static int parse_ignore_file( GIT_UNUSED(allow_macros); - if (git_repository__cvar(&ignore_case, repo, GIT_CVAR_IGNORECASE) < 0) + if (git_repository__configmap_lookup(&ignore_case, repo, GIT_CONFIGMAP_IGNORECASE) < 0) git_error_clear(); /* if subdir file path, convert context for file paths */ @@ -298,8 +298,8 @@ int git_ignore__for_path( ignores->repo = repo; /* Read the ignore_case flag */ - if ((error = git_repository__cvar( - &ignores->ignore_case, repo, GIT_CVAR_IGNORECASE)) < 0) + if ((error = git_repository__configmap_lookup( + &ignores->ignore_case, repo, GIT_CONFIGMAP_IGNORECASE)) < 0) goto cleanup; if ((error = git_attr_cache__init(repo)) < 0) |