From 2b1c6c58a8c9e9afa8ba54214bc0bee48b06142f Mon Sep 17 00:00:00 2001 From: nsfisis Date: Tue, 30 Jun 2026 01:23:13 +0900 Subject: refactor(git): replace is_callable with RunCommandOutput trait Model Git::runCommand's mixed $commandOutput parameter with the RunCommandOutput trait (one impl per PHP mode: discard, by-ref capture, callable handler), mirroring ProcessExecutor's IntoExecOutput. This moves the is_callable($commandOutput) value-inspection into the type system and drops the dependency on the shim's incomplete is_callable. Co-Authored-By: Claude Opus 4.8 (1M context) --- crates/shirabe/src/repository/vcs/git_driver.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/shirabe/src/repository') diff --git a/crates/shirabe/src/repository/vcs/git_driver.rs b/crates/shirabe/src/repository/vcs/git_driver.rs index 1455383..186bfef 100644 --- a/crates/shirabe/src/repository/vcs/git_driver.rs +++ b/crates/shirabe/src/repository/vcs/git_driver.rs @@ -455,7 +455,7 @@ impl GitDriver { url, Some(&sys_get_temp_dir()), false, - None, + (), ) { Ok(_) => Ok(true), Err(e) => { -- cgit v1.3.1