Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0d77a56

Browse files
author
Edward Thomson
committed
checkout: drop unused repo
1 parent c2f18b9 commit 0d77a56

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/commit.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ void git_commit__free(void *_commit)
4040

4141
static int git_commit__create_buffer_internal(
4242
git_buf *out,
43-
git_repository *repo,
4443
const git_signature *author,
4544
const git_signature *committer,
4645
const char *message_encoding,
@@ -51,7 +50,7 @@ static int git_commit__create_buffer_internal(
5150
size_t i = 0;
5251
const git_oid *parent;
5352

54-
assert(out && repo && tree);
53+
assert(out && tree);
5554

5655
git_oid__writebuf(out, "tree ", tree);
5756

@@ -150,7 +149,7 @@ static int git_commit__create_internal(
150149
if ((error = validate_tree_and_parents(&parents, repo, tree, parent_cb, parent_payload, current_id, validate)) < 0)
151150
goto cleanup;
152151

153-
error = git_commit__create_buffer_internal(&buf, repo, author, committer,
152+
error = git_commit__create_buffer_internal(&buf, author, committer,
154153
message_encoding, message, tree,
155154
&parents);
156155

@@ -813,7 +812,7 @@ int git_commit_create_buffer(git_buf *out,
813812
return error;
814813

815814
error = git_commit__create_buffer_internal(
816-
out, repo, author, committer,
815+
out, author, committer,
817816
message_encoding, message, tree_id,
818817
&parents_arr);
819818

0 commit comments

Comments
 (0)