(worktree: &std::path::Path, args: &[&str])
| 276 | |
| 277 | impl SystemGit { |
| 278 | fn output(worktree: &std::path::Path, args: &[&str]) -> Option<String> { |
| 279 | let output = std::process::Command::new(crate::git::git_program()) |
| 280 | .args(args) |
| 281 | .current_dir(worktree) |
| 282 | .output() |
| 283 | .ok()?; |
| 284 | if !output.status.success() { |
| 285 | return None; |
| 286 | } |
| 287 | String::from_utf8(output.stdout).ok() |
| 288 | } |
| 289 | } |
| 290 | |
| 291 | impl GitReflogSource for SystemGit { |