vcs.py
¶
Utilities related to VCS.
checkout_latest_tag(local_repo, use_prereleases=False)
¶
Checkout latest git tag and check it out, sorted by PEP 440.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
local_repo |
Union[str, pathlib.Path] |
A git repository in the local filesystem. |
required |
use_prereleases |
Optional[bool] |
If |
False |
Source code in copier/vcs.py
59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 |
|
is_git_bundle(path)
¶
Indicate if a path is a valid git bundle.
Source code in copier/vcs.py
34 35 36 37 38 39 |
|
is_git_repo_root(path)
¶
Indicate if a given path is a git repo root directory.
Source code in copier/vcs.py
25 26 27 28 29 30 31 |
|