summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2018-02-28 21:29:38 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2018-03-06 14:22:30 +1000
commitcd63ba2cc0d32608a0f2f4c7ced6016cde0fc60c (patch)
tree35b8e6aa6277dc0106ca1742ae0aad23f3d14eb6 /tools
parenta437d9374bc69495f7c64859dc0e1bd470d01baa (diff)
tools: add the git version in the libinput-record output
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'tools')
-rw-r--r--tools/libinput-record.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/libinput-record.c b/tools/libinput-record.c
index 560ef45c..aaaa6cae 100644
--- a/tools/libinput-record.c
+++ b/tools/libinput-record.c
@@ -38,6 +38,7 @@
#include "libinput-util.h"
#include "libinput-version.h"
+#include "libinput-git-version.h"
static const int FILE_VERSION_NUMBER = 1;
@@ -278,6 +279,7 @@ print_libinput_header(struct record_context *ctx)
iprintf(ctx, "libinput:\n");
indent_push(ctx);
iprintf(ctx, "version: \"%s\"\n", LIBINPUT_VERSION);
+ iprintf(ctx, "git: \"%s\"\n", LIBINPUT_GIT_VERSION);
if (ctx->timeout > 0)
iprintf(ctx, "autorestart: %d\n", ctx->timeout);
indent_pop(ctx);