git_target_revision Function

public function git_target_revision(url, sha1) result(self)

Target a specific git revision

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: url

Target URL of the git repository

character(len=*), intent(in) :: sha1

Commit hash of interest

Return Value type(git_target_t)

New git target


Source Code

    function git_target_revision(url, sha1) result(self)

        !> Target URL of the git repository
        character(len=*), intent(in) :: url

        !> Commit hash of interest
        character(len=*), intent(in) :: sha1

        !> New git target
        type(git_target_t) :: self

        self%descriptor = git_descriptor%revision
        self%url = url
        self%object = sha1

    end function git_target_revision