Go to the documentation of this file.
9 #ifndef EAGINE_GIT_INFO_HPP
10 #define EAGINE_GIT_INFO_HPP
95 #if !EAGINE_LINK_LIBRARY || defined(EAGINE_IMPLEMENTING_LIBRARY)
96 #include <eagine/git_info.inl>
99 #endif // EAGINE_GIT_INFO_HPP
basic_string_span< const char > string_view
Alias for const string views.
Definition: string_span.hpp:116
auto config_git_version_major() noexcept -> valid_if_nonnegative< int >
Returns major version number.
Common code is placed in this namespace.
Definition: eagine.hpp:21
auto config_git_version_patch() noexcept -> valid_if_nonnegative< int >
Returns patch version number.
auto config_git_version_commit() noexcept -> valid_if_nonnegative< int >
Returns commit version number.
auto config_git_date() noexcept -> valid_if_not_empty< string_view >
Returns the date of the commit from which the executable is built.
auto config_git_version_tuple() noexcept -> std::tuple< int, int, int, int >
Returns the complete version number as a tuple (major, minor, patch, commit).
auto config_git_version() noexcept -> valid_if_not_empty< string_view >
Returns the version number as string.
auto config_git_hash_id() noexcept -> valid_if_not_empty< string_view >
Returns the hash of the commit from which the executable is built.
valid_if< T, valid_if_nonneg_policy< T > > valid_if_nonnegative
Specialization of valid_if, for values valid if non-negative.
Definition: nonnegative.hpp:44
auto config_git_version_minor() noexcept -> valid_if_nonnegative< int >
Returns minor version number.
valid_if< T, valid_if_not_empty_policy< T > > valid_if_not_empty
Specialization of valid_if, for values valid if not empty.
Definition: not_empty.hpp:42
auto config_git_describe() noexcept -> valid_if_not_empty< string_view >
Returns the description of the commit from which the executable is built.
auto config_git_branch() noexcept -> valid_if_not_empty< string_view >
Returns the name of the git branch from which the executable is built.