summaryrefslogtreecommitdiffstats
path: root/core/load-git.c
diff options
context:
space:
mode:
Diffstat (limited to 'core/load-git.c')
-rw-r--r--core/load-git.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/core/load-git.c b/core/load-git.c
index a9e9107f7..f01fe72a0 100644
--- a/core/load-git.c
+++ b/core/load-git.c
@@ -283,6 +283,13 @@ static void parse_dive_notrip(char *line, struct membuffer *str, struct git_pars
state->active_dive->notrip = true;
}
+static void parse_dive_invalid(char *line, struct membuffer *str, struct git_parser_state *state)
+{
+ UNUSED(str);
+ UNUSED(line);
+ state->active_dive->invalid = true;
+}
+
static void parse_site_description(char *line, struct membuffer *str, struct git_parser_state *state)
{ UNUSED(line); state->active_site->description = detach_cstring(str); }
@@ -1039,7 +1046,7 @@ struct keyword_action dive_action[] = {
#undef D
#define D(x) { #x, parse_dive_ ## x }
D(airpressure), D(airtemp), D(buddy), D(chill), D(current), D(cylinder), D(divemaster), D(divesiteid), D(duration),
- D(gps), D(location), D(notes), D(notrip), D(rating), D(suit), D(surge),
+ D(gps), D(invalid), D(location), D(notes), D(notrip), D(rating), D(suit), D(surge),
D(tags), D(visibility), D(watersalinity), D(watertemp), D(wavesize), D(weightsystem)
};