Implementation for interacting with git repositories.
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
character(len=*), | public, | parameter | :: | compressed_package_name | = | 'compressed_package' |
Name of the compressed package that is generated temporarily. |
type(enum_descriptor), | public, | parameter | :: | git_descriptor | = | enum_descriptor() |
Actual enumerator for descriptors |
character(len=*), | public, | parameter | :: | out_fmt | = | '("#", *(1x, g0))' |
Common output format for writing to the command line |
Check that two git targets are equal
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(git_target_t), | intent(in) | :: | this |
Two input git targets |
||
type(git_target_t), | intent(in) | :: | that |
Two input git targets |
Possible git target
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
integer, | public | :: | branch | = | 201 |
Branch in git repository |
|
integer, | public | :: | default | = | 200 |
Default target |
|
integer, | public | :: | revision | = | 203 |
Commit hash |
|
integer, | public | :: | tag | = | 202 |
Tag in git repository |
Description of an git target
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
integer, | public | :: | descriptor | = | git_descriptor%default |
Kind of the git target |
|
character(len=:), | public, | allocatable | :: | object |
Additional descriptor of the git object |
||
character(len=:), | public, | allocatable | :: | url |
Target URL of the git repository |
procedure , public , :: checkout Subroutine | Fetch and checkout in local directory |
procedure , public , :: info Subroutine | Show information on instance |
Check that a cached dependency matches a manifest request
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(git_target_t), | intent(in) | :: | cached |
Two input git targets |
||
type(git_target_t), | intent(in) | :: | manifest |
Two input git targets |
||
integer, | intent(in) | :: | verbosity | |||
integer, | intent(in) | :: | iunit |
Target a branch in the git repository
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | url |
Target URL of the git repository |
||
character(len=*), | intent(in) | :: | branch |
Name of the branch of interest |
New git target
Default target
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | url |
Target URL of the git repository |
New git target
Check that two git targets are equal
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(git_target_t), | intent(in) | :: | this |
Two input git targets |
||
type(git_target_t), | intent(in) | :: | that |
Two input git targets |
Target a specific git revision
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | url |
Target URL of the git repository |
||
character(len=*), | intent(in) | :: | sha1 |
Commit hash of interest |
New git target
Target a git tag
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | url |
Target URL of the git repository |
||
character(len=*), | intent(in) | :: | tag |
Tag name of interest |
New git target
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(git_target_t), | intent(in) | :: | self |
Instance of the git target |
||
character(len=*), | intent(in) | :: | local_path |
Local path to checkout in |
||
type(error_t), | intent(out), | allocatable | :: | error |
Error |
Archive a folder using git archive
.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | source |
Directory to archive. |
||
character(len=*), | intent(in) | :: | destination |
Destination of the archive. |
||
character(len=*), | intent(in) | :: | ref |
(Symbolic) Reference to be archived. |
||
logical, | intent(in) | :: | verbose |
Print additional information if true. |
||
type(error_t), | intent(out), | allocatable | :: | error |
Error handling. |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | local_path |
Local path to checkout in |
||
character(len=:), | intent(out), | allocatable | :: | object |
Git object reference |
|
type(error_t), | intent(out), | allocatable | :: | error |
Error |
Show information on git target
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(git_target_t), | intent(in) | :: | self |
Instance of the git target |
||
integer, | intent(in) | :: | unit |
Unit for IO |
||
integer, | intent(in), | optional | :: | verbosity |
Verbosity of the printout |