MCPcopy Create free account
hub / github.com/DFHack/dfhack / git_commit

Function git_commit

library/DFHackVersion.cpp:36–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34 return DFHACK_GIT_DESCRIPTION;
35 }
36 const char* git_commit(bool short_hash)
37 {
38 static std::string shorty(DFHACK_GIT_COMMIT, 0, 7);
39 return short_hash ? shorty.c_str() : DFHACK_GIT_COMMIT;
40 }
41 const char *git_xml_commit()
42 {
43 return DFHACK_GIT_XML_COMMIT;

Callers 2

dfhack_version_descMethod · 0.85
saveMethod · 0.85

Calls 1

c_strMethod · 0.80

Tested by

no test coverage detected