Skip to content

Commit 9f8fa22

Browse files
committed
change!: use SecondsSinceUnixEpoch type where needed.
Previously we used `usize` which isn't correct on 32 bit systems.
1 parent b447f47 commit 9f8fa22

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gix-protocol/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ required-features = ["async-client"]
4343
gix-features = { version = "^0.30.0", path = "../gix-features", features = ["progress"] }
4444
gix-transport = { version = "^0.32.0", path = "../gix-transport" }
4545
gix-hash = { version = "^0.11.2", path = "../gix-hash" }
46+
gix-date = { version = "^0.5.1", path = "../gix-date" }
4647
gix-credentials = { version = "^0.15.0", path = "../gix-credentials" }
4748

4849
thiserror = "1.0.32"

gix-protocol/src/fetch/arguments/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,11 +129,11 @@ impl Arguments {
129129
self.prefixed("deepen ", depth);
130130
}
131131
}
132-
/// Deepen the commit history to include all commits from now to `seconds_since_unix_epoch`.
133-
pub fn deepen_since(&mut self, seconds_since_unix_epoch: usize) {
132+
/// Deepen the commit history to include all commits from now to (and including) `seconds` as passed since UNIX epoch.
133+
pub fn deepen_since(&mut self, seconds: gix_date::SecondsSinceUnixEpoch) {
134134
debug_assert!(self.deepen_since, "'deepen-since' feature required");
135135
if self.deepen_since {
136-
self.prefixed("deepen-since ", seconds_since_unix_epoch);
136+
self.prefixed("deepen-since ", seconds);
137137
}
138138
}
139139
/// Deepen the commit history in a relative instead of absolute fashion.

0 commit comments

Comments
 (0)