Skip to main content
← dvs documentation Rust API reference

resolve_paths_for_get

Function resolve_paths_for_get 

Source
pub fn resolve_paths_for_get(
    paths: Vec<PathBuf>,
    glob_pattern: Option<&str>,
    dvs_paths: &DvsPaths,
    recursive: bool,
) -> Result<HashSet<PathBuf>>
Expand description

Resolve paths for get command by scanning tracked metadata:

  • Explicit files or directories: filtered to tracked files under them
  • Glob: matched relative to each path argument, or relative to cwd when no paths are given
  • No paths + no glob: returns all tracked files directly under cwd