half as many git log calls when reading a comment
This commit is contained in:
parent
c15736259c
commit
eb7ac21ac8
1 changed files with 2 additions and 2 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue