forked from andrew-hardin/cmake-git-version-tracking
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathruntime_IGitInfo.h.in
More file actions
33 lines (26 loc) · 1.09 KB
/
runtime_IGitInfo.h.in
File metadata and controls
33 lines (26 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#ifndef @GTML_RUNTIME_IGITINFO_HEADER_GUARD@
#define @GTML_RUNTIME_IGITINFO_HEADER_GUARD@
@GTML_INFO@
#include <optional>
#include <string_view>
namespace @GTML_RUNTIME_NAMESPACE@ {
class IGitInfo
{
public:
virtual ~IGitInfo() = default;
virtual bool isPopulated() const = 0;
virtual std::optional<bool> hasUncommittedChanges() const = 0;
virtual std::string_view commitAuthorName() const = 0;
virtual std::string_view commitAuthorEmail() const = 0;
virtual std::string_view commitHash() const = 0;
virtual std::string_view commitShortHash() const = 0;
virtual std::string_view commitDate() const = 0;
virtual std::string_view commitSubject() const = 0;
virtual std::string_view commitBody() const = 0;
virtual std::string_view describe() const = 0;
virtual std::string_view branchName() const = 0;
virtual std::string_view latestTag() const = 0;
virtual std::string_view latestTagName() const = 0;
};
} // namespace @GTML_RUNTIME_NAMESPACE@
#endif // @GTML_RUNTIME_IGITINFO_HEADER_GUARD@