aboutsummaryrefslogtreecommitdiffstats
path: root/src/vcs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2018-02-27 02:46:36 -0500
committerJesse Luehrs <doy@tozt.net>2018-02-27 02:59:19 -0500
commitaa45fae4852080b7f7289408248499b3cecc8169 (patch)
treea9591429d0d0fa704ff66d929011d5d7097d0d17 /src/vcs
parentbea8eb55cb26db5dc50958665668759716ff6830 (diff)
downloadfancy-prompt-aa45fae4852080b7f7289408248499b3cecc8169.tar.gz
fancy-prompt-aa45fae4852080b7f7289408248499b3cecc8169.zip
add some more profiling verbose output
Diffstat (limited to 'src/vcs')
-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)))