summaryrefslogtreecommitdiffstats
path: root/save-git.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-11-16 23:11:18 +0000
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-11-16 23:20:39 +0000
commit23304f69c04f13ba87f32e8574a75c08212a3608 (patch)
tree7925373ac99b32cb1306cd885b43ffe3f084f8ab /save-git.c
parent202c5cbfeb6888b05ae4b14b4f563666bc6ca763 (diff)
downloadsubsurface-23304f69c04f13ba87f32e8574a75c08212a3608.tar.gz
Load and save the dc type for CCR dives
Oddly we already had code to load this from XML, but nothing else. This makes the load from XML work like the rest of our code and adds the save to XML plus the load and save for the git format. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'save-git.c')
-rw-r--r--save-git.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/save-git.c b/save-git.c
index 68fc52637..288917a29 100644
--- a/save-git.c
+++ b/save-git.c
@@ -339,6 +339,8 @@ static void save_dc(struct membuffer *b, struct dive *dive, struct divecomputer
show_date(b, dc->when);
if (dc->duration.seconds && dc->duration.seconds != dive->dc.duration.seconds)
put_duration(b, dc->duration, "duration ", "min\n");
+ if (dc->dctype != OC)
+ put_format(b, "dctype %s\n", dctype_text[dc->dctype]);
save_depths(b, dc);
save_temperatures(b, dc);