Commit 98269322 authored by Brad King's avatar Brad King Committed by Kitware Robot

Merge topic 'datetime-ref'

081d10b2 prepare: use the Copy impl of DateTime
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Reviewed-by: Brad King's avatarBrad King <brad.king@kitware.com>
Merge-request: !48
parents 7da70e8a 081d10b2
# v4.0.0 (unreleased)
* The `MergeCommand::author_date` method now takes a `DateTime<Utc>` rather
than a reference.
# v3.1.2
* More submodule name/path mismatch fixes.
......
......@@ -83,7 +83,7 @@ impl MergeCommand {
}
/// Set the authorship date of the merge.
pub fn author_date(&mut self, when: &DateTime<Utc>) -> &mut Self {
pub fn author_date(&mut self, when: DateTime<Utc>) -> &mut Self {
self.command
.env("GIT_AUTHOR_DATE", when.to_rfc2822());
self
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment