From 10ec1ac16b5ec2577b94e8311e48ee3c7db9fb78 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 20 Mar 2018 14:01:38 +0200 Subject: Come up with better version for uncommitted snapshots Instead of leaving it as .z we now take the date of the previous commit and increment it by a second. The main benefit of doing it this way is that once committed, the new version does not "jump back" behind .z. --- build2/version/snapshot.hxx | 1 + 1 file changed, 1 insertion(+) (limited to 'build2/version/snapshot.hxx') diff --git a/build2/version/snapshot.hxx b/build2/version/snapshot.hxx index b7e6dd7..15f4b59 100644 --- a/build2/version/snapshot.hxx +++ b/build2/version/snapshot.hxx @@ -18,6 +18,7 @@ namespace build2 { uint64_t sn = 0; string id; + bool committed = false; bool empty () const {return sn == 0;} -- cgit v1.1