From a237e7f860bb4705823077e90b2ecc599746e46c Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 20 Jan 2014 23:21:48 +0100 Subject: CommandLine: show the current git tag and commit id --- src/CommandLine.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/CommandLine.cxx') 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 \n" "Copyright (C) 2008-2014 Max Kellermann \n" -- cgit v1.2.3