aboutsummaryrefslogtreecommitdiffstats
path: root/core/save-git.c
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2019-12-12 22:58:53 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-03-20 15:20:44 -0700
commit329641fdcdf7759d430aea2d2a115550bc5caf62 (patch)
tree45e4e272f86c2f1429b3c9fff4e9f435bf9392a7 /core/save-git.c
parentef821d7d94bbc69337c36f26a25d819e340b14f5 (diff)
downloadsubsurface-329641fdcdf7759d430aea2d2a115550bc5caf62.tar.gz
Core: introduce invalid flag for dives
Implement reading/writing the flag from/to XML/git. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/save-git.c')
-rw-r--r--core/save-git.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/save-git.c b/core/save-git.c
index daeae23a3..a304e0d94 100644
--- a/core/save-git.c
+++ b/core/save-git.c
@@ -442,6 +442,7 @@ static void create_dive_buffer(struct dive *dive, struct membuffer *b)
if (surface_pressure.mbar)
SAVE("airpressure", surface_pressure.mbar);
cond_put_format(dive->notrip, b, "notrip\n");
+ cond_put_format(dive->invalid, b, "invalid\n");
save_tags(b, dive->tag_list);
if (dive->dive_site)
put_format(b, "divesiteid %08x\n", dive->dive_site->uuid);