add git::git_log_oldest_author_timestamp(), saves us one git log

This cuts about 30% off the time to read the issues from
entomologist-data.
This commit is contained in:
Sebastian Kuzminsky 2025-07-22 13:04:54 -06:00
parent def729d43a
commit c15736259c
2 changed files with 41 additions and 2 deletions

View file

@ -166,8 +166,7 @@ impl Issue {
Err(IssueError::IdError)?
};
let author = crate::git::git_log_oldest_author(dir)?;
let creation_time = crate::git::git_log_oldest_timestamp(dir)?;
let (author, creation_time) = crate::git::git_log_oldest_author_timestamp(dir)?;
Ok(Self {
id,