[CRIU] [PATCH 2/2] version: Print git id if present

Cyrill Gorcunov gorcunov at openvz.org
Fri Sep 13 11:35:42 EDT 2013


If criu is built from git repo print git commit id, convenient for debug.

For example

 | $ ./criu -V
 | Version: 0.7
 | GitID: 7985251

Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 crtools.c                | 2 ++
 scripts/Makefile.version | 5 +++++
 2 files changed, 7 insertions(+)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-version-Print-git-id-if-present.patch
Type: text/x-patch
Size: 1312 bytes
Desc: not available
URL: <http://lists.openvz.org/pipermail/criu/attachments/20130913/44d45952/attachment.bin>


More information about the CRIU mailing list