cocci: apply the "commit.h" part of "the_repository.pending"
Apply the part of "the_repository.pending.cocci" pertaining to "commit.h". Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
cb338c23d6
commit
ecb5091fd4
@ -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);
|
||||
|
Reference in New Issue
Block a user