pub fn scan(dir: &Path, no_ignore: bool) -> Result<Tree>Expand description
Scan dir’s top level, honoring ignore files unless no_ignore is set.
Dotfiles are included. When ignore handling is enabled, repository metadata
(.git and .jj) is excluded too. Deeper directories materialize on
demand.