[PATCH] Assign lower number to a merged dive instead of higher one

Linus Torvalds torvalds at linux-foundation.org
Thu Jan 7 17:48:42 PST 2016


On Thu, Jan 7, 2016 at 2:21 PM, Salvador Cuñat <salvador.cunat at gmail.com> wrote:
> At the moment, if we have, say, dives ... 100, 101 and 102 and we merge 101 and
> 102, we get a list numbered ... 99, 100, 102. This is, probably, an
> undesired behavior. The patch simple chooses lower of both dive numbers instead
> of higher one.

Acked-by: Linus Torvalds <torvalds at linux-foundation.org>

That said, when you start merging dives, you usually do end up having
to renumber subsequent dives anyway, but this is the right thing to do
anyway.

             Linus


More information about the subsurface mailing list