Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
a237e7f8
Commit
a237e7f8
authored
Jan 20, 2014
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CommandLine: show the current git tag and commit id
parent
07a3bef2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
configure.ac
configure.ac
+4
-0
CommandLine.cxx
src/CommandLine.cxx
+5
-1
No files found.
configure.ac
View file @
a237e7f8
...
...
@@ -15,6 +15,10 @@ AC_CONFIG_MACRO_DIR([m4])
AC_DEFINE(PROTOCOL_VERSION, "0.19.0", [The MPD protocol version])
GIT_COMMIT=`GIT_DIR="$srcdir/.git" git describe --dirty --always 2>/dev/null`
if test x$GIT_COMMIT != x; then
AC_DEFINE_UNQUOTED(GIT_COMMIT, ["$GIT_COMMIT"], [The current git commit])
fi
dnl ---------------------------------------------------------------------------
dnl Programs
...
...
src/CommandLine.cxx
View file @
a237e7f8
...
...
@@ -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
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment