aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/util/svn.rs
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-06-24 21:10:48 +0900
committernsfisis <nsfisis@gmail.com>2026-06-24 21:11:03 +0900
commita8f115666344abe3b606a4a65595ca301e7ac08a (patch)
tree9af244392d41542fae74ceab1be0b8fb473bdd46 /crates/shirabe/src/util/svn.rs
parent6dcc2125974e350d1844c5ce1bb3562e224f3435 (diff)
downloadphp-shirabe-a8f115666344abe3b606a4a65595ca301e7ac08a.tar.gz
php-shirabe-a8f115666344abe3b606a4a65595ca301e7ac08a.tar.zst
php-shirabe-a8f115666344abe3b606a4a65595ca301e7ac08a.zip
refactor(process): take cwd as Option<&str> instead of IntoExecCwd
Replace the generic cwd parameter backed by the IntoExecCwd trait with a concrete Option<&str> across execute/execute_args/execute_tty/execute_async. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe/src/util/svn.rs')
-rw-r--r--crates/shirabe/src/util/svn.rs11
1 files changed, 5 insertions, 6 deletions
diff --git a/crates/shirabe/src/util/svn.rs b/crates/shirabe/src/util/svn.rs
index 0a3daf3..84e5760 100644
--- a/crates/shirabe/src/util/svn.rs
+++ b/crates/shirabe/src/util/svn.rs
@@ -165,11 +165,10 @@ impl Svn {
// TODO(phase-c): pass the filtering handler above to process.execute once the callback
// model lands; for now a plain buffer is used and the output filtering is skipped.
let mut handler_output = String::new();
- let status = self.process.borrow_mut().execute_args(
- &command,
- &mut handler_output,
- cwd.map(String::from),
- );
+ let status = self
+ .process
+ .borrow_mut()
+ .execute_args(&command, &mut handler_output, cwd);
if 0 == status {
return Ok(output);
}
@@ -455,7 +454,7 @@ impl Svn {
if 0 == self.process.borrow_mut().execute_args(
&["svn".to_string(), "--version".to_string()],
&mut output,
- (),
+ None,
) {
let mut matches: IndexMap<CaptureKey, String> = IndexMap::new();
if Preg::is_match3(r"{(\d+(?:\.\d+)+)}", &output, Some(&mut matches)) {