pub fn git_staged_file_paths(root_path: &String) -> Result<Vec<PathBuf>, Error> {
    let staged_filenames = git_staged_file_names()?;

    let staged_files = staged_filenames
        .lines()
        .map(|file_name: &str| -> PathBuf {
            let mut path: PathBuf = PathBuf::new();
            path.push(&root_path);
            path.push(file_name);
            return path;
        })
        .collect();

    trace!("staged file paths: {:?}", staged_files);

    return Ok(staged_files);
}
// NOTE: interpolate root_path and file names
// Result is a Vec<String> with absolute paths to staged files
interpolate root_path and file names
Result is a Vec with absolute paths to staged files
interpolate root_path and file names Result is a Vec with absolute paths to staged files
pub fn git_staged_file_paths(root_path: &String) -> Result<Vec<PathBuf>, Error> {
    let staged_filenames = git_staged_file_names()?;
    let staged_files = staged_filenames
        .lines()
        .map(|file_name: &str| -> PathBuf {
            let mut path: PathBuf = PathBuf::new();
            path.push(&root_path);
            path.push(file_name);
            return path;
        })
        .collect();
    trace!("staged file paths: {:?}", staged_files);
    return Ok(staged_files);
}
pub fn git_staged_file_paths ( root_path : & String ) -> Result < Vec < PathBuf > , Error > { let staged_filenames = git_staged_file_names ( ) ? ; let staged_files = staged_filenames . lines ( ) . map ( | file_name : & str | -> PathBuf { let mut path : PathBuf = PathBuf :: new ( ) ; path . push ( & root_path ) ; path . push ( file_name ) ; return path ; } ) . collect ( ) ; trace ! ( " " staged_files ) ; return Ok ( staged_files ) ; }
NOTE: interpolate root_path and file names
Result is a Vec<String> with absolute paths to staged files
NOTE : interpolate root_path and file names Result is a Vec<String > with absolute paths to staged files
root_path
&String
root_path
&String