Skip to content

Commit 2bcac0c

Browse files
committed
adapt to changes in gix-date
1 parent e61832e commit 2bcac0c

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

examples/log.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ fn run(args: Args) -> anyhow::Result<()> {
150150
commit_ref.author.actor().write_to(&mut buf)?;
151151
buf.into()
152152
},
153-
time: commit_ref.author.time()?.format_or_raw(format::DEFAULT),
153+
time: commit_ref.author.time()?.format_or_unix(format::DEFAULT),
154154
message: commit_ref.message.to_owned(),
155155
})
156156
}),

gitoxide-core/src/query/engine/command.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ mod trace_path {
180180
out,
181181
"{}| {} | {} {} {} ➡ {}",
182182
self.diff.unwrap_or_default().format(max_diff_lines),
183-
self.commit_time.format_or_raw(gix::date::time::format::SHORT),
183+
self.commit_time.format_or_unix(gix::date::time::format::SHORT),
184184
id.shorten_or_id(),
185185
self.mode.as_str(),
186186
path_by_id[&source_id],
@@ -192,7 +192,7 @@ mod trace_path {
192192
out,
193193
"{}| {} | {} {} {}",
194194
self.diff.unwrap_or_default().format(max_diff_lines),
195-
self.commit_time.format_or_raw(gix::date::time::format::SHORT),
195+
self.commit_time.format_or_unix(gix::date::time::format::SHORT),
196196
id.shorten_or_id(),
197197
self.mode.as_str(),
198198
path_by_id[&self.file_id]

gitoxide-core/src/repository/revision/explain.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ impl delegate::Revision for Explain<'_> {
8888
ReflogLookup::Date(time) => writeln!(
8989
self.out,
9090
"Find entry closest to time {} in reflog of '{}' reference",
91-
time.format_or_raw(gix::date::time::format::ISO8601),
91+
time.format_or_unix(gix::date::time::format::ISO8601),
9292
ref_name
9393
)
9494
.ok(),

gix/src/repository/identity.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ impl Personas {
140140
.and_then(|date| gix_date::parse(date, Some(SystemTime::now())).ok())
141141
})
142142
.or_else(|| Some(gix_date::Time::now_local_or_utc()))
143-
.map(|time| time.format_or_raw(gix_date::time::Format::Raw))
143+
.map(|time| time.format_or_unix(gix_date::time::Format::Raw))
144144
};
145145

146146
let fallback = (

gix/src/revision/spec/parse/error.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ impl std::fmt::Display for CandidateInfo {
4444
"commit {} {title:?}",
4545
gix_date::parse_header(date)
4646
.unwrap_or_default()
47-
.format_or_raw(gix_date::time::format::SHORT)
47+
.format_or_unix(gix_date::time::format::SHORT)
4848
)
4949
}
5050
}

0 commit comments

Comments
 (0)