@@ -53,10 +53,10 @@ pub(crate) trait RepositoryExtended {
53
53
///
54
54
/// - Respecting `i18n.commitEncoding` for commit messages.
55
55
/// - Respecting `commit.gpgSign` and creating signed commits when enabled.
56
- fn commit_ex < ' a > (
56
+ fn commit_ex (
57
57
& 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 ,
60
60
message : & Message ,
61
61
tree_id : gix:: ObjectId ,
62
62
parent_ids : impl IntoIterator < Item = gix:: ObjectId > ,
@@ -66,10 +66,10 @@ pub(crate) trait RepositoryExtended {
66
66
///
67
67
/// The provided [`CommitOptions`] gives finer-grained control versus
68
68
/// [`RepositoryExtended::commit_ex()`].
69
- fn commit_with_options < ' a > (
69
+ fn commit_with_options (
70
70
& 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 ,
73
73
message : & Message ,
74
74
tree_id : gix:: ObjectId ,
75
75
parent_ids : impl IntoIterator < Item = gix:: ObjectId > ,
@@ -195,10 +195,10 @@ impl RepositoryExtended for gix::Repository {
195
195
Ok ( ( ) )
196
196
}
197
197
198
- fn commit_ex < ' a > (
198
+ fn commit_ex (
199
199
& 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 ,
202
202
message : & Message ,
203
203
tree_id : gix:: ObjectId ,
204
204
parent_ids : impl IntoIterator < Item = gix:: ObjectId > ,
@@ -219,17 +219,15 @@ impl RepositoryExtended for gix::Repository {
219
219
)
220
220
}
221
221
222
- fn commit_with_options < ' a > (
222
+ fn commit_with_options (
223
223
& 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 ,
226
226
message : & Message ,
227
227
tree_id : gix:: ObjectId ,
228
228
parent_ids : impl IntoIterator < Item = gix:: ObjectId > ,
229
229
options : & CommitOptions < ' _ > ,
230
230
) -> Result < gix:: ObjectId > {
231
- let author = author. into ( ) ;
232
- let committer = committer. into ( ) ;
233
231
let commit_encoding = match & options. commit_encoding {
234
232
Some ( s) => {
235
233
let encoding = encoding_rs:: Encoding :: for_label ( s)
@@ -256,7 +254,7 @@ impl RepositoryExtended for gix::Repository {
256
254
let commit_id = self . write_object ( & gix:: objs:: Commit {
257
255
tree : tree_id,
258
256
parents : parent_ids. into_iter ( ) . collect ( ) ,
259
- author : author. to_owned ( ) ,
257
+ author : author. clone ( ) ,
260
258
committer : committer. to_owned ( ) ,
261
259
encoding : commit_encoding. map ( |enc| enc. name ( ) . into ( ) ) ,
262
260
message : message. raw_bytes ( ) . into ( ) ,
0 commit comments