git_target_t Derived Type

type, public :: git_target_t

Description of an git target


Contents

Source Code


Components

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


Type-Bound Procedures

procedure, public, :: checkout

Fetch and checkout in local directory

  • public subroutine checkout(self, local_path, error)

    Arguments

    Type IntentOptional 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

procedure, public, :: info

Show information on instance

  • public subroutine info(self, unit, verbosity)

    Show information on git target

    Arguments

    Type IntentOptional 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

Source Code

    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