caching
Caching operations.
Classes¶
Functions¶
clone_repo
¶
clone_repo(url: ParsedURL) -> Path
get_cache_dir
¶
get_cache_dir() -> Path
Get the path to store cached repos.
RETURNS | DESCRIPTION |
---|---|
Path
|
Path to the cache directory or a temporary directory if caching is disabled. |
get_remote_clone
¶
get_remote_clone(parsed_url: ParsedURL) -> Path
Return the path to a locally cloned remote repo.
This provides some error-checking for the cached repo, and will re-clone if the cached repo is in a detached head state.
PARAMETER | DESCRIPTION |
---|---|
parsed_url
|
The parsed Git URL to clone
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
Path
|
The path to the locally cloned repository |