summaryrefslogtreecommitdiffstats
path: root/core/save-git.c
diff options
context:
space:
mode:
Diffstat (limited to 'core/save-git.c')
-rw-r--r--core/save-git.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/core/save-git.c b/core/save-git.c
index 395490d83..c0f098d44 100644
--- a/core/save-git.c
+++ b/core/save-git.c
@@ -374,7 +374,11 @@ static void save_one_event(struct membuffer *b, struct dive *dive, struct event
put_format(b, "event %d:%02d", FRACTION(ev->time.seconds, 60));
show_index(b, ev->type, "type=", "");
show_index(b, ev->flags, "flags=", "");
- show_index(b, ev->value, "value=", "");
+
+ if (!strcmp(ev->name,"modechange"))
+ show_utf8(b, "divemode=", divemode_text[ev->value], "");
+ else
+ show_index(b, ev->value, "value=", "");
show_utf8(b, " name=", ev->name, "");
if (event_is_gaschange(ev)) {
struct gasmix *mix = get_gasmix_from_event(dive, ev);