@@ -40,7 +40,6 @@ void git_commit__free(void *_commit)
4040
4141static 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