Expand description
Abstraction over “a snapshot of the repository” (working tree or a git rev).
Structs§
Constants§
- DEFAULT_
EXCLUDED_ DIRS - Directory names always excluded from scanning.
Traits§
- Source
- Lists and reads files of a repository snapshot. Paths are repo-relative,
/-separated, and sorted. Symlinks are not included. Paths under.git,target,.miwa,.worktrees,node_modules,obj, anddistare excluded (directory names at any depth; files with those names are not). Further directory names can be excluded viaexcludein the config, which is applied inbuild_graph.
Functions§
- is_
not_ found - Whether
erris aSource::readfailure caused by the path not existing (as opposed to, say, agitinvocation failure). Callers use this to distinguish “file absent” from a real execution error. - is_
under_ dir_ named - Whether any parent-directory segment of
path(the file name itself is not considered) equals one ofnames. - merge_
base - Returns the first line of
git merge-base <base> HEADrun inrepo.