diff options
| author | Patrick Steinhardt <ps@pks.im> | 2019-02-20 10:40:06 +0100 |
|---|---|---|
| committer | Patrick Steinhardt <ps@pks.im> | 2019-02-21 13:35:56 +0100 |
| commit | bbdcd45055ca702eb5083ebf0c70f04c15642f78 (patch) | |
| tree | 98a4fe91213837ebf834d02772fe588612f9e84a /src/cache.h | |
| parent | 9eb098d8614bdd0365140f6614441465123ce903 (diff) | |
| download | libgit2-bbdcd45055ca702eb5083ebf0c70f04c15642f78.tar.gz | |
cache: fix misnaming of `git_cache_free`
Functions that free a structure's contents but not the structure
itself shall be named `dispose` in the libgit2 project, but the
function `git_cache_free` does not follow this naming pattern.
Fix this by renaming it to `git_cache_dispose` and adjusting all
callers to make use of the new name.
Diffstat (limited to 'src/cache.h')
| -rw-r--r-- | src/cache.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cache.h b/src/cache.h index d2386eea6..1e6179236 100644 --- a/src/cache.h +++ b/src/cache.h @@ -43,7 +43,7 @@ extern git_atomic_ssize git_cache__current_storage; int git_cache_set_max_object_size(git_object_t type, size_t size); int git_cache_init(git_cache *cache); -void git_cache_free(git_cache *cache); +void git_cache_dispose(git_cache *cache); void git_cache_clear(git_cache *cache); void *git_cache_store_raw(git_cache *cache, git_odb_object *entry); |
