pub fn execute_capture(args: &[&str], cwd: Option<&Path>) -> Result<String>
Execute a git command and capture output