diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2014-03-09 13:33:28 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-03-09 19:36:29 -0700 |
commit | 2584b7e83132e5f63d94fff8fb7ffbc49259a83f (patch) | |
tree | feca1f374e3b434ceb71ee085757c3eded2f2941 /libdivecomputer.h | |
parent | a052c63b003d1f82bc5785617db4e3e285f82e00 (diff) | |
download | subsurface-2584b7e83132e5f63d94fff8fb7ffbc49259a83f.tar.gz |
Enumerate dive computers when saving them in the git repository
We want to make sure that we load them in the same order we save them,
and while using the hash made the divecomputer names unique, it didn't
sort them. You couldn't tell with just one or two dive computers, but
if you have three or more dive computers on a dive, the order of any but
the first ended up depending on the ordering of the unique hash
extensions.
So just append a numeric index instead of relying on the hash to make
the names unique. But skip the index if there is just one dive
computer.
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'libdivecomputer.h')
0 files changed, 0 insertions, 0 deletions