# Function cargo::sources::path::list_files_git

source ·

    fn list_files_git(
        pkg: &Package,
        repo: &Repository,
        filter: &dyn Fn(&Path, bool) -> bool,
        gctx: &GlobalContext,
    ) -> CargoResult<Vec<PathBuf>>

Expand description

Lists files relevant to building this package inside this source by consulting both Git index (tracked) or status (untracked) under a given Git repository.

This looks into Git submodules as well.