Add version.{h,cpp}: Returning version info
这个提交包含在:
11
version.cpp
普通文件
11
version.cpp
普通文件
@@ -0,0 +1,11 @@
|
||||
#include "version.h"
|
||||
|
||||
std::string git_commit_id()
|
||||
{
|
||||
return std::string(GITCOMMIT);
|
||||
}
|
||||
|
||||
std::string get_version_string()
|
||||
{
|
||||
return git_commit_id() + " Built: " + __DATE__ + " " + __TIME__;
|
||||
}
|
在新工单中引用
屏蔽一个用户