Skip to content

Commit d0ceff5

Browse files
committed
remove prints
1 parent a699fa4 commit d0ceff5

File tree

4 files changed

+7
-18
lines changed

4 files changed

+7
-18
lines changed

src/commands/git_ai_handlers.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -332,14 +332,7 @@ fn handle_checkpoint(args: &[String]) {
332332
.map(|r| r.checkpoint_kind)
333333
.unwrap_or(CheckpointKind::Human);
334334

335-
println!("checkpoint_kind: {:?}", checkpoint_kind);
336-
println!("files for mock_ai: {:?}", get_all_files_for_mock_ai(&final_working_dir));
337-
338335
if CheckpointKind::Human == checkpoint_kind && agent_run_result.is_none() {
339-
println!(
340-
"get_all_files_for_mock_ai HUMAN Checkpoints: {:?}",
341-
get_all_files_for_mock_ai(&final_working_dir)
342-
);
343336
agent_run_result = Some(AgentRunResult {
344337
agent_id: AgentId {
345338
tool: "mock_ai".to_string(),

src/git/repo_storage.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,6 @@ impl PersistedWorkingLog {
142142
}
143143

144144
pub fn set_dirty_files(&mut self, dirty_files: Option<HashMap<String, String>>) {
145-
println!("pre_transform dirty_files: {:?}", dirty_files);
146-
147145
let normalized_dirty_files = dirty_files.map(|map| {
148146
map.into_iter()
149147
.map(|(file_path, content)| {
@@ -155,8 +153,6 @@ impl PersistedWorkingLog {
155153
});
156154

157155
self.dirty_files = normalized_dirty_files;
158-
159-
println!("setdirty_files: {:?}", self.dirty_files);
160156
}
161157

162158
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)