Skip to content

v5.8.0

Choose a tag to compare

@laurakoye laurakoye released this 20 Aug 19:03
· 4 commits to master since this release
adabf52

What's Changed

  • [DIT-13461]: Read git context in the CLI scan by @laurakoye in #154
    • ditto scan now reads the git context of the directory you scan — the repository, the commit, the branch, and where the scan started within the repository — and sends it along with the scan. This allows a later scan to be recognized as the same codebase, rather than importing every string again.
    • This reads your local git only. There are no additional network calls, no credentials are used or transmitted, and nothing is recorded about your remote beyond its host and path.
    • Scanning without git still works exactly as before. Outside a repository, the CLI prints not a git repository - this scan can be imported but not re-synced and continues. When the working tree has uncommitted changes, it notes that the recorded commit is approximate.
    • Also includes [DIT-13467]: Send git metadata with POST /v2/scan in #155
  • Text extraction now uses @dittowords/text-extract 0.3.0. Scan candidate identifiers are derived from the file, the value, and the occurrence index, so identifiers differ from those produced by earlier versions.
  • Scanning a directory with no extractable strings now prints its warning as intended.

Full Changelog: v5.7.2...v5.8.0