Compare commits
No commits in common. "cb50649d855e9999391bf596d40c4a53974bc01a" and "f8b8a69b8c475a8a08a34619d1d34bbfb1781631" have entirely different histories.
cb50649d85
...
f8b8a69b8c
|
@ -426,7 +426,7 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "git-heatmap"
|
name = "git-heatmap"
|
||||||
version = "1.0.3"
|
version = "1.0.2"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"anyhow",
|
"anyhow",
|
||||||
"chrono",
|
"chrono",
|
||||||
|
|
|
@ -2,7 +2,7 @@ cargo-features = ["codegen-backend"]
|
||||||
|
|
||||||
[package]
|
[package]
|
||||||
name = "git-heatmap"
|
name = "git-heatmap"
|
||||||
version = "1.0.3"
|
version = "1.0.2"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
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"
|
||||||
|
|
|
@ -23,7 +23,7 @@ pub struct CliArgs {
|
||||||
#[arg(short, long, num_args(0..), value_hint = ValueHint::DirPath)]
|
#[arg(short, long, num_args(0..), value_hint = ValueHint::DirPath)]
|
||||||
pub repos: Option<Vec<PathBuf>>,
|
pub repos: Option<Vec<PathBuf>>,
|
||||||
|
|
||||||
#[arg(short('i'), long("ignore"), num_args(0..))]
|
#[arg(short('i'), long("igore"), num_args(0..))]
|
||||||
pub ignored_repos: Option<Vec<String>>,
|
pub ignored_repos: Option<Vec<String>>,
|
||||||
|
|
||||||
#[arg(short, long, num_args(0..))]
|
#[arg(short, long, num_args(0..))]
|
||||||
|
|
10
src/main.rs
10
src/main.rs
|
@ -243,14 +243,8 @@ fn get_commits(
|
||||||
let mut has_commits = false;
|
let mut has_commits = false;
|
||||||
|
|
||||||
for branch in branches {
|
for branch in branches {
|
||||||
// When passing the default @ (HEAD) branch this might actually not exist at all
|
let branch_commits = repo
|
||||||
// locally so we're skipping it
|
.rev_parse(branch)?
|
||||||
let Ok(rev) = repo.rev_parse(branch)
|
|
||||||
else {
|
|
||||||
continue;
|
|
||||||
};
|
|
||||||
|
|
||||||
let branch_commits = rev
|
|
||||||
.single()
|
.single()
|
||||||
.unwrap()
|
.unwrap()
|
||||||
.ancestors()
|
.ancestors()
|
||||||
|
|
Loading…
Reference in New Issue