diff options
author | Joakim Bygdell <j.bygdell@gmail.com> | 2017-02-04 10:13:58 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-02-05 11:59:47 -0800 |
commit | d4dbd0bee78702116cbf389721cff17bfe52dbc2 (patch) | |
tree | 988eb5786645749374613ed3e9db27cf16787c54 /core/load-git.c | |
parent | 6518b0db4563839c0adccae32cc4b4f5e9fa27a8 (diff) | |
download | subsurface-d4dbd0bee78702116cbf389721cff17bfe52dbc2.tar.gz |
Save profile settings to git
In order to streamline the view between desktop and mobile we need to save
selected profile related settings to git.
Signed-off-by: Joakim Bygdell <j.bygdell@gmail.com>
Diffstat (limited to 'core/load-git.c')
-rw-r--r-- | core/load-git.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/core/load-git.c b/core/load-git.c index abe1a5ad0..2b5163b70 100644 --- a/core/load-git.c +++ b/core/load-git.c @@ -816,6 +816,14 @@ static void parse_settings_userid(char *line, struct membuffer *str, void *_unus } } +static void parse_settings_prefs(char *line, struct membuffer *str, void *unused) +{ + (void) str; + (void) unused; + if (line) + set_git_prefs(line); +} + /* * Our versioning is a joke right now, but this is more of an example of what we * *can* do some day. And if we do change the version, this warning will show if @@ -988,7 +996,7 @@ static void trip_parser(char *line, struct membuffer *str, void *_trip) static struct keyword_action settings_action[] = { #undef D #define D(x) { #x, parse_settings_ ## x } - D(autogroup), D(divecomputerid), D(subsurface), D(units), D(userid), D(version), + D(autogroup), D(divecomputerid), D(subsurface), D(prefs), D(units), D(userid), D(version) }; static void settings_parser(char *line, struct membuffer *str, void *_unused) |