diff --git a/src/git.rs b/src/git.rs index 9aa34a5..da28dbb 100644 --- a/src/git.rs +++ b/src/git.rs @@ -1,6 +1,7 @@ use std::process::Command; pub fn check_git_status() -> bool { + info!("Run: git fetch --dry-run"); match Command::new("git").env("LANG", "en_US").args(&["fetch", "--dry-run"]).output() { Err(e) => { warn!("Error in run git fetch --dry-run: {}", e); @@ -17,6 +18,7 @@ pub fn check_git_status() -> bool { }, }, } + info!("Run: git status"); match Command::new("git").env("LANG", "en_US").args(&["status"]).output() { Err(e) => { warn!("Error in run git status: {}", e); @@ -40,6 +42,7 @@ pub fn check_git_status() -> bool { } pub fn get_git_hash() -> Option { + info!("Run: git rev-parse HEAD"); match Command::new("git").args(&["rev-parse", "HEAD"]).output(){ Err(e) => { warn!("Error in run git rev-parse HEAD: {}", e);