git_version_mod Module

Explicit interfaces for the functions in git_hash.fpp


Contents


Interfaces

interface

  • public function get_git_version()

    Returns the git version from git describe

    This looks like: {tag}-g{hash}[-dirty]

    Arguments

    None

    Return Value character(len=:), allocatable

interface

  • public function get_git_hash(length_in)

    Returns the git hash of the current commit

    Arguments

    Type IntentOptional Attributes Name
    integer, intent(in), optional :: length_in

    Return Value character(len=:), allocatable

interface

  • public function get_git_state()

    Return "-dirty" if the repository has modifications to tracked files, or the empty string otherwise

    Arguments

    None

    Return Value character(len=:), allocatable