Expand description
git ls-files — show information about files in the index and working tree.
use git_spawn::{GitCommand, LsFilesCommand};
let mut cmd = LsFilesCommand::new();
cmd.current_dir("/repo").cached();
let out = cmd.execute().await?;
for path in out.stdout.lines() {
println!("{path}");
}Structs§
- LsFiles
Command - Builder for
git ls-files.