diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2018-03-20 14:01:38 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2018-03-20 14:01:38 +0200 |
commit | 10ec1ac16b5ec2577b94e8311e48ee3c7db9fb78 (patch) | |
tree | c23d7edabe624448b20b835af74bcea81cdf39bd /build2/version/snapshot.hxx | |
parent | 4cc966d1468f6ce59600517e44d4817c0905210f (diff) |
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.
Diffstat (limited to 'build2/version/snapshot.hxx')
-rw-r--r-- | build2/version/snapshot.hxx | 1 |
1 files changed, 1 insertions, 0 deletions
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;} |