From 113b8b8dfe164aa9fb9b55bcfc0a554e0c54fdf8 Mon Sep 17 00:00:00 2001 From: Joe Date: Fri, 6 Feb 2026 22:46:54 -0600 Subject: [PATCH] Improve logging in CloneCommand and InitCommand during git operations - Added informational logging for staging and committing changes in both `CloneCommand` and `InitCommand`, enhancing visibility into the git process during project initialization and cloning. --- src/cli/clone.rs | 2 ++ src/cli/init.rs | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/cli/clone.rs b/src/cli/clone.rs index a57d443a..1d0bdcf4 100644 --- a/src/cli/clone.rs +++ b/src/cli/clone.rs @@ -90,6 +90,7 @@ impl CloneCommand { // Commit syncback result if !skip_git { + log::info!("Staging syncback changes..."); let _ = Command::new("git") .args(["add", "."]) .current_dir(&path) @@ -98,6 +99,7 @@ impl CloneCommand { .stderr(Stdio::null()) .status(); + log::info!("Committing syncback changes..."); let _ = Command::new("git") .args(["commit", "--no-verify", "-m", "syncback"]) .current_dir(&path) diff --git a/src/cli/init.rs b/src/cli/init.rs index 935e8d6d..026c37e5 100644 --- a/src/cli/init.rs +++ b/src/cli/init.rs @@ -181,8 +181,7 @@ impl InitCommand { } if did_git_init { - log::debug!("Committing initial project..."); - + log::info!("Staging initial project..."); let _ = Command::new("git") .args(["add", "."]) .current_dir(&base_path) @@ -191,6 +190,7 @@ impl InitCommand { .stderr(Stdio::null()) .status(); + log::info!("Committing initial project..."); let _ = Command::new("git") .args(["commit", "--no-verify", "-m", "Initial commit"]) .current_dir(&base_path)