Skip to content

Commit c643eea

Browse files
committed
fix: Correct date filter comparison logic in matches_date_filter function to be fully identical to Git
1 parent de3fb5d commit c643eea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/git.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,13 +150,13 @@ fn matches_date_filter(
150150
let commit_date = DateTime::from_timestamp(timestamp, 0).unwrap_or_else(Utc::now);
151151

152152
if let Some(before_date) = before {
153-
if commit_date >= *before_date {
153+
if commit_date > *before_date {
154154
return false;
155155
}
156156
}
157157

158158
if let Some(after_date) = after {
159-
if commit_date <= *after_date {
159+
if commit_date < *after_date {
160160
return false;
161161
}
162162
}

0 commit comments

Comments
 (0)