| Class | R10K::Git::WorkingDir |
| In: |
lib/r10k/git/working_dir.rb
|
| Parent: | R10K::Git::Repository |
Implements sparse git repositories with shared objects
Working directory instances use the git alternatives object store, so that working directories only contain checked out files and all object files are shared.
@deprecated This has been replaced by the ShellGit provider and the
StatefulRepository class and will be removed in 2.0.0
:nocov:
| cache | [R] |
@!attribute [r] cache
@return [R10K::Git::Cache] The object cache backing this working directory |
| ref | [R] |
@!attribute [r] ref
@return [R10K::Git::Ref] The git reference to use check out in the given directory |
| remote | [R] |
@!attribute [r] remote
@return [String] The actual remote used as an upstream for this module. |
Create a new shallow git working directory
@param ref [String, R10K::Git::Ref] @param remote [String] @param basedir [String] @param dirname [String]
Determine if repo has been cloned into a specific dir
@return [true, false] If the repo has already been cloned