Function cargo::sources::path::list_files_gix

source ยท
fn list_files_gix(
    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 traversing the git working tree, while avoiding ignored files.

This looks into Git sub-repositories as well, resolving them to individual files. Symlinks to directories will also be resolved, but walked as repositories if they point to one to avoid picking up .git directories.