@@ -40,7 +40,6 @@ void git_commit__free(void *_commit)
40
40
41
41
static int git_commit__create_buffer_internal (
42
42
git_buf * out ,
43
- git_repository * repo ,
44
43
const git_signature * author ,
45
44
const git_signature * committer ,
46
45
const char * message_encoding ,
@@ -51,7 +50,7 @@ static int git_commit__create_buffer_internal(
51
50
size_t i = 0 ;
52
51
const git_oid * parent ;
53
52
54
- assert (out && repo && tree );
53
+ assert (out && tree );
55
54
56
55
git_oid__writebuf (out , "tree " , tree );
57
56
@@ -150,7 +149,7 @@ static int git_commit__create_internal(
150
149
if ((error = validate_tree_and_parents (& parents , repo , tree , parent_cb , parent_payload , current_id , validate )) < 0 )
151
150
goto cleanup ;
152
151
153
- error = git_commit__create_buffer_internal (& buf , repo , author , committer ,
152
+ error = git_commit__create_buffer_internal (& buf , author , committer ,
154
153
message_encoding , message , tree ,
155
154
& parents );
156
155
@@ -813,7 +812,7 @@ int git_commit_create_buffer(git_buf *out,
813
812
return error ;
814
813
815
814
error = git_commit__create_buffer_internal (
816
- out , repo , author , committer ,
815
+ out , author , committer ,
817
816
message_encoding , message , tree_id ,
818
817
& parents_arr );
819
818
0 commit comments