summaryrefslogtreecommitdiffstats
path: root/core/save-git.c
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2018-11-18 11:15:32 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-11-20 08:14:54 -0800
commit6bf4120dbbf7be1b9267e0e86f3948b77870ea71 (patch)
tree3282a26502c1a91ae63ceca450b82b11f5be4e78 /core/save-git.c
parent3b9e0b59311908f6cbc099f3b7fd5294fd5d0d30 (diff)
downloadsubsurface-6bf4120dbbf7be1b9267e0e86f3948b77870ea71.tar.gz
Core: replace tripflag by notrip boolean
The only remaining use of the tripflag was to mark dives that were removed explicitly from a trip, i.e. shouldn't be autogrouped. Therefore replace the enum by a simple boolean. Currently, there is no way of unsetting the notrip flag. But this shouldn't result in a user-visible change. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/save-git.c')
-rw-r--r--core/save-git.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/save-git.c b/core/save-git.c
index c53c2bb97..7b903a5e9 100644
--- a/core/save-git.c
+++ b/core/save-git.c
@@ -429,7 +429,7 @@ static void create_dive_buffer(struct dive *dive, struct membuffer *b)
put_format(b, "duration %u:%02u min\n", FRACTION(dive->dc.duration.seconds, 60));
SAVE("rating", rating);
SAVE("visibility", visibility);
- cond_put_format(dive->tripflag == NO_TRIP, b, "notrip\n");
+ cond_put_format(dive->notrip, b, "notrip\n");
save_tags(b, dive->tag_list);
if (dive->dive_site)
put_format(b, "divesiteid %08x\n", dive->dive_site->uuid);