Documentation
¶
Overview ¶
Package checkout handles workspace materialization and .gitignore management.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddToGitignore ¶
AddToGitignore ensures the directory containing target has a .gitignore entry that ignores target, matching DVC: one .gitignore per directory, entry "/<basename>" with POSIX separators, idempotent.
func Materialize ¶
Materialize reconstructs the workspace path for out from cache objects using the given link strategies (reflink/hardlink/symlink/copy). Files already matching are left untouched. For directories, workspace files absent from the manifest are pruned, matching `dvc checkout`.
Types ¶
type LinkType ¶
type LinkType string
LinkType is a cache.type strategy.
func ParseCacheTypes ¶
ParseCacheTypes parses a cache.type value ("reflink,copy") into an ordered list of strategies, defaulting to DVC's default (reflink, copy).