aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/repository/vcs
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-06-30 01:23:13 +0900
committernsfisis <nsfisis@gmail.com>2026-06-30 01:23:13 +0900
commit2b1c6c58a8c9e9afa8ba54214bc0bee48b06142f (patch)
treecd4c272651e8a2727debf89e24f09e1c29b18fbc /crates/shirabe/src/repository/vcs
parent91ccd49cf68bca199e7d41fa65a4a3b0d1368127 (diff)
downloadphp-shirabe-2b1c6c58a8c9e9afa8ba54214bc0bee48b06142f.tar.gz
php-shirabe-2b1c6c58a8c9e9afa8ba54214bc0bee48b06142f.tar.zst
php-shirabe-2b1c6c58a8c9e9afa8ba54214bc0bee48b06142f.zip
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) <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe/src/repository/vcs')
-rw-r--r--crates/shirabe/src/repository/vcs/git_driver.rs2
1 files changed, 1 insertions, 1 deletions
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) => {