pub fn tracked_files(&self) -> Result<&Utf8Paths0> {
        self.tracked_files.get_or_try_init(|| {
            // TODO: abstract out SCM and command-running functionality.
            let output = self
                .git_command()
                // The -z causes files to not be quoted, and to be separated by \0.
                .args(&["ls-files", "-z"])
                .output()
                .map_err(|err| SystemError::io("running git ls-files", err))?;
            if !output.status.success() {
                return Err(SystemError::Exec {
                    cmd: "git ls-files",
                    status: output.status,
                });
            }

            Utf8Paths0::from_bytes(output.stdout)
                .map_err(|(path, err)| SystemError::NonUtf8Path { path, err })
        })
    }
/// Returns the files tracked by Git in this working copy.
///
/// The return value can be iterated on to get a list of paths.
Returns the files tracked by Git in this working copy.
The return value can be iterated on to get a list of paths.
Returns the files tracked by Git in this working copy . The return value can be iterated on to get a list of paths .
pub fn tracked_files(&self) -> Result<&Utf8Paths0> {
        self.tracked_files.get_or_try_init(|| {
            // TODO: abstract out SCM and command-running functionality.
            let output = self
                .git_command()
                // The -z causes files to not be quoted, and to be separated by \0.
                .args(&["ls-files", "-z"])
                .output()
                .map_err(|err| SystemError::io("running git ls-files", err))?;
            if !output.status.success() {
                return Err(SystemError::Exec {
                    cmd: "git ls-files",
                    status: output.status,
                });
            }
            Utf8Paths0::from_bytes(output.stdout)
                .map_err(|(path, err)| SystemError::NonUtf8Path { path, err })
        })
    }
pub fn tracked_files ( & self ) -> Result < & Utf8Paths0 > { self . tracked_files . get_or_try_init ( | | { // TODO: abstract out SCM and command-running functionality. let output = self . git_command ( ) // The -z causes files to not be quoted, and to be separated by \0. . args ( & [ " " , " " ] ) . output ( ) . map_err ( | err | SystemError :: io ( " " , err ) ) ? ; if ! output . status . success ( ) { return Err ( SystemError :: Exec { cmd : " " , status : output . status , } ) ; } Utf8Paths0 :: from_bytes ( output . stdout ) . map_err ( | ( path , err ) | SystemError :: NonUtf8Path { path , err } ) } ) }
Returns the files tracked by Git in this working copy.
Returns the files tracked by Git in this working copy .
&self