Skip to main content

Module ls_files

Module ls_files 

Source
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§

LsFilesCommand
Builder for git ls-files.