half as many git log calls when reading a comment

This commit is contained in:
Sebastian Kuzminsky 2025-07-22 13:13:59 -06:00
parent c15736259c
commit eb7ac21ac8

View file

@ -52,8 +52,8 @@ impl Comment {
return Err(CommentError::CommentParseError);
};
let author = crate::git::git_log_oldest_author(comment_dir)?;
let creation_time = crate::git::git_log_oldest_timestamp(comment_dir)?;
let (author, creation_time) = crate::git::git_log_oldest_author_timestamp(comment_dir)?;
let dir = std::path::PathBuf::from(comment_dir);
Ok(Self {