]> git.ipfire.org Git - thirdparty/git.git/blobdiff - builtin/replace.c
cocci: apply the "commit.h" part of "the_repository.pending"
[thirdparty/git.git] / builtin / replace.c
index 33c6cdb79c8143a301b5887d6e1eb477a9ca1463..85f0b79c924849893eed1da3a1839f07e2ed4b15 100644 (file)
@@ -458,9 +458,9 @@ static int create_graft(int argc, const char **argv, int force, int gentle)
        if (!commit)
                return error(_("could not parse %s"), old_ref);
 
-       buffer = get_commit_buffer(commit, &size);
+       buffer = repo_get_commit_buffer(the_repository, commit, &size);
        strbuf_add(&buf, buffer, size);
-       unuse_commit_buffer(commit, buffer);
+       repo_unuse_commit_buffer(the_repository, commit, buffer);
 
        if (replace_parents(&buf, argc - 1, &argv[1]) < 0) {
                strbuf_release(&buf);