summaryrefslogtreecommitdiff
path: root/src/object.c
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2019-07-18 13:53:41 +0200
committerPatrick Steinhardt <ps@pks.im>2019-07-18 13:53:41 +0200
commit658022c41affc7d9b5bd9b84b1d75ec909b820c6 (patch)
tree031b076abf8466b6f449fbe1e54d1c98c95eb061 /src/object.c
parent343fb83a4d3550fe6464ac52a9f4e57bdb6d5b24 (diff)
downloadlibgit2-658022c41affc7d9b5bd9b84b1d75ec909b820c6.tar.gz
configuration: cvar -> configmap
`cvar` is an unhelpful name. Refactor its usage to `configmap` for more clarity.
Diffstat (limited to 'src/object.c')
-rw-r--r--src/object.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/object.c b/src/object.c
index 17b9794c9..c28629c48 100644
--- a/src/object.c
+++ b/src/object.c
@@ -496,7 +496,7 @@ int git_object_short_id(git_buf *out, const git_object *obj)
git_buf_sanitize(out);
repo = git_object_owner(obj);
- if ((error = git_repository__cvar(&len, repo, GIT_CVAR_ABBREV)) < 0)
+ if ((error = git_repository__configmap_lookup(&len, repo, GIT_CONFIGMAP_ABBREV)) < 0)
return error;
if ((error = git_repository_odb(&odb, repo)) < 0)