Skip to content

Commit d8ac703

Browse files
committed
remove prints
1 parent 943c843 commit d8ac703

File tree

4 files changed

+10
-19
lines changed

4 files changed

+10
-19
lines changed

src/commands/git_ai_handlers.rs

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,9 @@ fn print_help() {
120120
eprintln!(" ci Continuous integration utilities");
121121
eprintln!(" github GitHub CI helpers");
122122
eprintln!(" squash-authorship Generate authorship log for squashed commits");
123-
eprintln!(" <base_branch> <new_sha> <old_sha> Required: base branch, new commit SHA, old commit SHA");
123+
eprintln!(
124+
" <base_branch> <new_sha> <old_sha> Required: base branch, new commit SHA, old commit SHA"
125+
);
124126
eprintln!(" --dry-run Show what would be done without making changes");
125127
eprintln!(" git-path Print the path to the underlying git executable");
126128
eprintln!(" version, -v, --version Print the git-ai version");
@@ -326,14 +328,7 @@ fn handle_checkpoint(args: &[String]) {
326328
.map(|r| r.checkpoint_kind)
327329
.unwrap_or(CheckpointKind::Human);
328330

329-
println!("checkpoint_kind: {:?}", checkpoint_kind);
330-
println!("files for mock_ai: {:?}", get_all_files_for_mock_ai(&final_working_dir));
331-
332331
if CheckpointKind::Human == checkpoint_kind && agent_run_result.is_none() {
333-
println!(
334-
"get_all_files_for_mock_ai HUMAN Checkpoints: {:?}",
335-
get_all_files_for_mock_ai(&final_working_dir)
336-
);
337332
agent_run_result = Some(AgentRunResult {
338333
agent_id: AgentId {
339334
tool: "mock_ai".to_string(),

src/git/repo_storage.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,6 @@ impl PersistedWorkingLog {
157157
}
158158

159159
pub fn set_dirty_files(&mut self, dirty_files: Option<HashMap<String, String>>) {
160-
println!("pre_transform dirty_files: {:?}", dirty_files);
161-
162160
let normalized_dirty_files = dirty_files.map(|map| {
163161
map.into_iter()
164162
.map(|(file_path, content)| {
@@ -170,8 +168,6 @@ impl PersistedWorkingLog {
170168
});
171169

172170
self.dirty_files = normalized_dirty_files;
173-
174-
println!("setdirty_files: {:?}", self.dirty_files);
175171
}
176172

177173
pub fn reset_working_log(&self) -> Result<(), GitAiError> {

tests/repos/test_file.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -727,12 +727,10 @@ impl<'a> TestFile<'a> {
727727
fn write_and_checkpoint(&self, author_type: &AuthorType) {
728728
let contents = self.contents();
729729
fs::write(&self.file_path, contents).unwrap();
730-
let _ = if author_type == &AuthorType::Ai {
731-
let a = self.repo.git_ai(&["checkpoint", "mock_ai"]);
732-
println!("checkpoint result: {:?}", a);
733-
a
730+
if author_type == &AuthorType::Ai {
731+
self.repo.git_ai(&["checkpoint", "mock_ai"]).unwrap();
734732
} else {
735-
self.repo.git_ai(&["checkpoint"])
733+
self.repo.git_ai(&["checkpoint"]).unwrap();
736734
};
737735
}
738736

tests/repos/test_repo.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ impl TestRepo {
4040
}
4141

4242
pub fn canonical_path(&self) -> PathBuf {
43-
self.path.canonicalize().expect("failed to canonicalize test repo path")
43+
self.path
44+
.canonicalize()
45+
.expect("failed to canonicalize test repo path")
4446
}
4547

4648
pub fn stats(&self) -> Result<CommitStats, String> {
@@ -228,7 +230,7 @@ impl TestRepo {
228230

229231
impl Drop for TestRepo {
230232
fn drop(&mut self) {
231-
// fs::remove_dir_all(self.path.clone()).expect("failed to remove test repo");
233+
fs::remove_dir_all(self.path.clone()).expect("failed to remove test repo");
232234
}
233235
}
234236

0 commit comments

Comments
 (0)