Fixed the default days being shown being 366 instead of 365
parent
a748f78a94
commit
5f830049dd
|
|
@ -449,7 +449,7 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "git-heatmap"
|
name = "git-heatmap"
|
||||||
version = "1.4.0"
|
version = "1.4.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"anyhow",
|
"anyhow",
|
||||||
"chrono",
|
"chrono",
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ cargo-features = ["codegen-backend"]
|
||||||
|
|
||||||
[package]
|
[package]
|
||||||
name = "git-heatmap"
|
name = "git-heatmap"
|
||||||
version = "1.4.0"
|
version = "1.4.1"
|
||||||
edition = "2024"
|
edition = "2024"
|
||||||
authors = ["Wynd <wyndftw@proton.me>"]
|
authors = ["Wynd <wyndftw@proton.me>"]
|
||||||
description = "A simple and customizable heatmap for git repos"
|
description = "A simple and customizable heatmap for git repos"
|
||||||
|
|
|
||||||
|
|
@ -62,6 +62,6 @@ pub struct CliArgs {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_since_date() -> String {
|
fn get_since_date() -> String {
|
||||||
let date = Local::now() - Duration::days(365);
|
let date = Local::now() - Duration::days(364);
|
||||||
date.format("%Y-%m-%d").to_string()
|
date.format("%Y-%m-%d").to_string()
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,7 @@ pub struct Mailmap {
|
||||||
entries: Vec<MapEntry>,
|
entries: Vec<MapEntry>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(dead_code)]
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
struct MapEntry {
|
struct MapEntry {
|
||||||
new_name: Option<String>,
|
new_name: Option<String>,
|
||||||
|
|
@ -58,4 +59,4 @@ impl Mailmap {
|
||||||
|
|
||||||
author
|
author
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue