git_target_branch Function

public function git_target_branch(url, branch) result(self)

Target a branch in the git repository

Arguments

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

Target URL of the git repository

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

Name of the branch of interest

Return Value type(git_target_t)

New git target


Source Code

    function git_target_branch(url, branch) result(self)

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

        !> Name of the branch of interest
        character(len=*), intent(in) :: branch

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

        self%descriptor = git_descriptor%branch
        self%url = url
        self%object = branch

    end function git_target_branch