git_is_same Function

public function git_is_same(this, that)

Check that two git targets are equal All checks passed!

Type Bound

git_target_t

Arguments

Type IntentOptional Attributes Name
class(git_target_t), intent(in) :: this
class(serializable_t), intent(in) :: that

Return Value logical


Source Code

    logical function git_is_same(this,that)
        class(git_target_t), intent(in) :: this
        class(serializable_t), intent(in) :: that

        git_is_same = .false.

        select type (other=>that)
           type is (git_target_t)

              if (.not.(this%descriptor==other%descriptor)) return
              if (.not.(this%url==other%url)) return
              if (.not.(this%object==other%object)) return

           class default
              ! Not the same type
              return
        end select

        !> All checks passed!
        git_is_same = .true.

    end function git_is_same