// Run a git command and return the lines of the output
Run a git command and return the lines of the output
Run a git command and return the lines of the output
fn command_output(dir: &Path, args: &[&str]) -> Result<Vec<String>> {
    let out = Command::new("git").current_dir(dir).args(args).output()?;
    Ok(std::str::from_utf8(&out.stdout)?
        .lines()
        .map(|x| x.to_string())
        .collect())
}
fn command_output ( dir : & Path , args : & [ & str ] ) -> Result < Vec < String > > { let out = Command :: new ( " " ) . current_dir ( dir ) . args ( args ) . output ( ) ? ; Ok ( std :: str :: from_utf8 ( & out . stdout ) ? . lines ( ) . map ( | x | x . to_string ( ) ) . collect ( ) ) }
Run a git command and return the lines of the output
Run a git command and return the lines of the output
dir
&Path
args
&[&str]