mirror of
https://github.com/gitui-org/gitui
synced 2026-05-23 17:08:21 +00:00
add timing
This commit is contained in:
parent
2df83dfb88
commit
6c1d9e529b
1 changed files with 3 additions and 0 deletions
|
|
@ -5,6 +5,7 @@ use crate::{
|
|||
error::{Error, Result},
|
||||
sync::get_commits_info,
|
||||
};
|
||||
use scopetime::scope_time;
|
||||
use std::collections::{HashMap, HashSet};
|
||||
use std::io::{BufRead, BufReader};
|
||||
use std::path::Path;
|
||||
|
|
@ -53,6 +54,8 @@ pub fn blame_file(
|
|||
//TODO: remove until we actually use this on specific commits, right now not even the unittests cover this
|
||||
blame_at: &BlameAt,
|
||||
) -> Result<FileBlame> {
|
||||
scope_time!("blame_file");
|
||||
|
||||
let repo = utils::repo(repo_path)?;
|
||||
let commit_id = match blame_at {
|
||||
BlameAt::Head => utils::get_head_repo(&repo)?,
|
||||
|
|
|
|||
Loading…
Reference in a new issue