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 |
Fetch and checkout in local directory
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 |
Show information on instance
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 |
type :: git_target_t
!> Kind of the git target
integer :: descriptor = git_descriptor%default
!> Target URL of the git repository
character(len=:), allocatable :: url
!> Additional descriptor of the git object
character(len=:), allocatable :: object
contains
!> Fetch and checkout in local directory
procedure :: checkout
!> Show information on instance
procedure :: info
end type git_target_t