diff --git a/.gitignore b/.gitignore index ea8c4bf..c96fa24 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /target +profile.json \ No newline at end of file diff --git a/src/main.rs b/src/main.rs index dce765c..30691d8 100644 --- a/src/main.rs +++ b/src/main.rs @@ -7,9 +7,9 @@ use std::{cmp::Reverse, collections::HashSet, path::PathBuf, sync::OnceLock}; use anyhow::{anyhow, Context, Result}; use chrono::{DateTime, Duration, Local, NaiveDate, TimeZone}; use clap::Parser; -use gix::{bstr::ByteSlice, ObjectId, Repository}; +use gix::{bstr::ByteSlice, traverse::commit::simple::Sorting, ObjectId}; use heatmap::HeatmapColors; -use itertools::{enumerate, Itertools}; +use itertools::Itertools; use rgb::Rgb; use crate::{cli::CliArgs, heatmap::Heatmap}; @@ -153,12 +153,19 @@ fn get_commits(args: CliArgs, start_date: NaiveDate) -> Result<(usize, Vec Result<(usize, Vec