diff options
author | Patrick Steinhardt <ps@pks.im> | 2018-06-29 11:45:15 +0200 |
---|---|---|
committer | Patrick Steinhardt <ps@pks.im> | 2018-06-29 11:45:15 +0200 |
commit | af3088e4642a0babb1cd26f5ed143f087f5a71f8 (patch) | |
tree | 1e652f38b57561cabf9a1ba4425125131537c58d /src/fetch.c | |
parent | 7192e26fb4ae56f2e20a2af4253d9dea19f38577 (diff) | |
download | libgit2-af3088e4642a0babb1cd26f5ed143f087f5a71f8.tar.gz |
refspec: rename `git_refspec__free` to `git_refspec__dispose`
Since commit 630a67366 (refspec: add public parsing api, 2018-02-07), we
now have two functions `git_refspec_free` and `git_refspec__free`. The
difference is that the first one will free the structure itself, while
the second one will only free the structure's contents. Use our new
`dispose` naming pattern for the latter function to help avoid
confusion.
Diffstat (limited to 'src/fetch.c')
-rw-r--r-- | src/fetch.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fetch.c b/src/fetch.c index 0b22b3673..d68df8843 100644 --- a/src/fetch.c +++ b/src/fetch.c @@ -78,7 +78,7 @@ static int filter_wants(git_remote *remote, const git_fetch_options *opts) goto cleanup; error = git_refspec__dwim_one(&remote->active_refspecs, &head, &remote->refs); - git_refspec__free(&head); + git_refspec__dispose(&head); if (error < 0) goto cleanup; @@ -96,7 +96,7 @@ static int filter_wants(git_remote *remote, const git_fetch_options *opts) } cleanup: - git_refspec__free(&tagspec); + git_refspec__dispose(&tagspec); return error; } |