diff --git a/smartmontools/ChangeLog b/smartmontools/ChangeLog index f170a2fdb5ee79d8000f2bb19707937d1419ddea..6e7f21e9522bc50d871c6ebc54d02050a8a6e318 100644 --- a/smartmontools/ChangeLog +++ b/smartmontools/ChangeLog @@ -2,6 +2,8 @@ $Id$ 2024-01-17 Christian Franke <franke@computer.org> + utility.cpp: Add git commit hash to '-V' output if available. + Set version information also for builds from GH R/O mirror. Makefile.am: Move creation of svnversion.sh to ... diff --git a/smartmontools/utility.cpp b/smartmontools/utility.cpp index 2318212f5c23bc36b9ae914125981a1f257ff24e..f4671936a626062e161f33c0c1c150f3ec136404 100644 --- a/smartmontools/utility.cpp +++ b/smartmontools/utility.cpp @@ -123,6 +123,9 @@ std::string format_version_info(const char * prog_name, int lines /* = 2 */) #endif #ifdef SMARTMONTOOLS_SVN_REV "smartmontools SVN rev " SMARTMONTOOLS_SVN_REV +#ifdef SMARTMONTOOLS_GIT_HASH + " (git " SMARTMONTOOLS_GIT_HASH ")" +#endif " dated " SMARTMONTOOLS_SVN_DATE " at " SMARTMONTOOLS_SVN_TIME "\n" #else "smartmontools SVN rev is unknown\n"