@@ -53,10 +53,10 @@ pub(crate) trait RepositoryExtended {
5353 ///
5454 /// - Respecting `i18n.commitEncoding` for commit messages.
5555 /// - Respecting `commit.gpgSign` and creating signed commits when enabled.
56- fn commit_ex < ' a > (
56+ fn commit_ex (
5757 & self ,
58- author : impl Into < gix:: actor:: SignatureRef < ' a > > ,
59- committer : impl Into < gix:: actor:: SignatureRef < ' a > > ,
58+ author : & gix:: actor:: Signature ,
59+ committer : & gix:: actor:: Signature ,
6060 message : & Message ,
6161 tree_id : gix:: ObjectId ,
6262 parent_ids : impl IntoIterator < Item = gix:: ObjectId > ,
@@ -66,10 +66,10 @@ pub(crate) trait RepositoryExtended {
6666 ///
6767 /// The provided [`CommitOptions`] gives finer-grained control versus
6868 /// [`RepositoryExtended::commit_ex()`].
69- fn commit_with_options < ' a > (
69+ fn commit_with_options (
7070 & self ,
71- author : impl Into < gix:: actor:: SignatureRef < ' a > > ,
72- committer : impl Into < gix:: actor:: SignatureRef < ' a > > ,
71+ author : & gix:: actor:: Signature ,
72+ committer : & gix:: actor:: Signature ,
7373 message : & Message ,
7474 tree_id : gix:: ObjectId ,
7575 parent_ids : impl IntoIterator < Item = gix:: ObjectId > ,
@@ -195,10 +195,10 @@ impl RepositoryExtended for gix::Repository {
195195 Ok ( ( ) )
196196 }
197197
198- fn commit_ex < ' a > (
198+ fn commit_ex (
199199 & self ,
200- author : impl Into < gix:: actor:: SignatureRef < ' a > > ,
201- committer : impl Into < gix:: actor:: SignatureRef < ' a > > ,
200+ author : & gix:: actor:: Signature ,
201+ committer : & gix:: actor:: Signature ,
202202 message : & Message ,
203203 tree_id : gix:: ObjectId ,
204204 parent_ids : impl IntoIterator < Item = gix:: ObjectId > ,
@@ -219,17 +219,15 @@ impl RepositoryExtended for gix::Repository {
219219 )
220220 }
221221
222- fn commit_with_options < ' a > (
222+ fn commit_with_options (
223223 & self ,
224- author : impl Into < gix:: actor:: SignatureRef < ' a > > ,
225- committer : impl Into < gix:: actor:: SignatureRef < ' a > > ,
224+ author : & gix:: actor:: Signature ,
225+ committer : & gix:: actor:: Signature ,
226226 message : & Message ,
227227 tree_id : gix:: ObjectId ,
228228 parent_ids : impl IntoIterator < Item = gix:: ObjectId > ,
229229 options : & CommitOptions < ' _ > ,
230230 ) -> Result < gix:: ObjectId > {
231- let author = author. into ( ) ;
232- let committer = committer. into ( ) ;
233231 let commit_encoding = match & options. commit_encoding {
234232 Some ( s) => {
235233 let encoding = encoding_rs:: Encoding :: for_label ( s)
@@ -256,7 +254,7 @@ impl RepositoryExtended for gix::Repository {
256254 let commit_id = self . write_object ( & gix:: objs:: Commit {
257255 tree : tree_id,
258256 parents : parent_ids. into_iter ( ) . collect ( ) ,
259- author : author. to_owned ( ) ,
257+ author : author. clone ( ) ,
260258 committer : committer. to_owned ( ) ,
261259 encoding : commit_encoding. map ( |enc| enc. name ( ) . into ( ) ) ,
262260 message : message. raw_bytes ( ) . into ( ) ,
0 commit comments