aboutsummaryrefslogtreecommitdiffstats
path: root/src/CommandLine.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-01-20 23:21:48 +0100
committerMax Kellermann <max@duempel.org>2014-01-20 23:31:08 +0100
commita237e7f860bb4705823077e90b2ecc599746e46c (patch)
tree9eb68c4472459472258c9d3edf7417ddc6163fdc /src/CommandLine.cxx
parent07a3bef25ca737bccb04d2d8d16923ddd2ab162b (diff)
downloadmpd-a237e7f860bb4705823077e90b2ecc599746e46c.tar.gz
mpd-a237e7f860bb4705823077e90b2ecc599746e46c.tar.xz
mpd-a237e7f860bb4705823077e90b2ecc599746e46c.zip
CommandLine: show the current git tag and commit id
Diffstat (limited to 'src/CommandLine.cxx')
-rw-r--r--src/CommandLine.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/CommandLine.cxx b/src/CommandLine.cxx
index 59cb53534..33f4917c0 100644
--- a/src/CommandLine.cxx
+++ b/src/CommandLine.cxx
@@ -88,7 +88,11 @@ static constexpr Domain cmdline_domain("cmdline");
gcc_noreturn
static void version(void)
{
- puts("Music Player Daemon " VERSION "\n"
+ puts("Music Player Daemon " VERSION
+#ifdef GIT_COMMIT
+ " (" GIT_COMMIT ")"
+#endif
+ "\n"
"\n"
"Copyright (C) 2003-2007 Warren Dukes <warren.dukes@gmail.com>\n"
"Copyright (C) 2008-2014 Max Kellermann <max@duempel.org>\n"