From bb64906a9cc891d9cc439bd2eda6ebf726364ca0 Mon Sep 17 00:00:00 2001 From: Chris Down Date: Mon, 10 Aug 2009 15:14:29 +0100 Subject: Enable the console show version command and the viewer about command, to show the last git commit hash together with the conmit date and time. The data is retrieved form a file bin/.version This file can be generated automatically using the post commit script by adding the following to the script: git log -n 1 --pretty="format:%h: %ci" > bin/.version This command can also be run manually to create the bin/.version file. This command genrates a short form of the commit hash and a date and time of the commit in ISO8601 format. If a full commit hash is required then change %h to %H The logic that is used to extract the deprecated svn revision is still included. It will be removed at a future date --- .gitignore | 1 + 1 file changed, 1 insertion(+) (limited to '.gitignore') diff --git a/.gitignore b/.gitignore index c5c6da3..0376125 100644 --- a/.gitignore +++ b/.gitignore @@ -43,3 +43,4 @@ OpenSim/OpenSim.usertasks TAGS *~ Makefile.local +bin/.version -- cgit v1.1