pw_tokenizer: Handle finding multiple CSVs in a directory database - Handle multiple untracked files by using the most recently modified file. - Check if HEAD is in an ancestor of the specified commit rather than HEAD~, which was unintentionally being used. This prevents updating a previously committed CSV. - Move the _new_entries() function to the Database class as difference(). - Use the .pw_tokenizer.csv extension in directory databases to indicate that the CSVs are for pw_tokenizer. - Rename DatabaseFile.create() to DatabaseFile.load() to more accurately express what it does. - Remove some unnecessary functions. Fixes: b/243040287 Change-Id: I63b4479847937f8ebaced568389d4eaa601c1c96 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/107965 Reviewed-by: Anthony DiGirolamo <tonymd@google.com> Pigweed-Auto-Submit: Wyatt Hepler <hepler@google.com> Commit-Queue: Wyatt Hepler <hepler@google.com>
Pigweed is an open source collection of embedded-targeted libraries–or as we like to call them, modules. These modules are building blocks and infrastructure that enable faster and more reliable development on small-footprint MMU-less 32-bit microcontrollers like the STMicroelectronics STM32L452 or the Nordic nRF52832.
For more information please see our website: https://pigweed.dev/.