mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-30 05:05:19 -05:00
build: remove IMHEX_COMMIT_HASH_SHORT cmake flag (#1539)
This commit is contained in:
@@ -655,20 +655,16 @@ namespace hex {
|
||||
}
|
||||
|
||||
std::string getCommitHash(bool longHash) {
|
||||
if (longHash) {
|
||||
#if defined GIT_COMMIT_HASH_LONG
|
||||
#if defined GIT_COMMIT_HASH_LONG
|
||||
if (longHash) {
|
||||
return GIT_COMMIT_HASH_LONG;
|
||||
#else
|
||||
return "Unknown";
|
||||
#endif
|
||||
}
|
||||
else {
|
||||
#if defined GIT_COMMIT_HASH_SHORT
|
||||
return GIT_COMMIT_HASH_SHORT;
|
||||
#else
|
||||
return "Unknown";
|
||||
#endif
|
||||
}
|
||||
} else {
|
||||
return std::string(GIT_COMMIT_HASH_LONG).substr(0, 7);
|
||||
}
|
||||
#else
|
||||
hex::unused(longHash);
|
||||
return "Unknown";
|
||||
#endif
|
||||
}
|
||||
|
||||
std::string getCommitBranch() {
|
||||
|
||||
Reference in New Issue
Block a user