MCPcopy Create free account
hub / github.com/aws/amazon-q-developer-cli / has_changes

Method has_changes

crates/chat-cli/src/cli/chat/checkpoint.rs:325–331  ·  view source on GitHub ↗

Check for uncommitted changes

(&self)

Source from the content-addressed store, hash-verified

323
324 /// Check for uncommitted changes
325 pub fn has_changes(&self) -> Result<bool> {
326 let output = run_git(&self.shadow_repo_path, Some(&self.work_tree_path), &[
327 "status",
328 "--porcelain",
329 ])?;
330 Ok(!output.stdout.is_empty())
331 }
332
333 /// Clean up shadow repository
334 pub async fn cleanup(&self, os: &Os) -> Result<()> {

Callers 1

tool_use_executeMethod · 0.80

Calls 2

run_gitFunction · 0.85
is_emptyMethod · 0.45

Tested by

no test coverage detected