aboutsummaryrefslogtreecommitdiffstats
path: root/src/vcs/git.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/vcs/git.rs')
-rw-r--r--src/vcs/git.rs9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/vcs/git.rs b/src/vcs/git.rs
index 32369a3..74696ec 100644
--- a/src/vcs/git.rs
+++ b/src/vcs/git.rs
@@ -187,9 +187,16 @@ impl super::VcsInfo for GitInfo {
}
pub fn detect() -> Option<Box<super::VcsInfo>> {
- let git = std::env::current_dir()
+ start_talking_about_time!("git::detect");
+
+ let pwd = std::env::current_dir();
+ talk_about_time!("pwd");
+ let git = pwd
.ok()
.and_then(|pwd| git2::Repository::discover(pwd).ok());
+ talk_about_time!("discover");
+
+ stop_talking_about_time!();
if let Some(git) = git {
Some(Box::new(GitInfo::new(&git)))