Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moderate
update
's' destructive behaviour
A documented but still-surprising behaviour of `codelists update` is that it deletes files in the codelists directory that aren't referenced by codelists.txt. Running a `codelists update` after a `codelists add` is beneficial as it makes "adding" a codelist (i.e. making a codelist available to be added to your study) a single operation. This change minimises the most harmful/surprising side effects of `update` when it is implicitly called after `add`, whilst leaving potentially beneficial ones intact (updating dm+d lists affected by "acute" codelist rot/VMP id updates), and all other codelists unaffected. An explicit call to `update` maintains the previous behaviour.
- Loading branch information