Delphi-RAG-Lint

drag-lint help

diff

Since: 0.13.0-alpha

Compares two index databases and reports what changed between them -- for example an index snapshot taken before and after a refactor.

Read this when you want to know what changed between two index snapshots, for example before and after a refactor. diff compares two index databases and lists the symbols added, removed or changed in signature between them.

How to run it

Full flag list: diff in the CLI reference.

Flags

FlagArgumentMeaningDefault
--db<old.sqlite>
--json

Where to click

No IDE surface: this feature runs from the CLI (see How to run it).

Needs: index

Details

Compares two index databases and reports what changed between them -- for example an index snapshot taken before and after a refactor. Reach for it when you want the symbol/reference-level delta between two points in time.

Running it from the CLI

drag-lint diff --db <old.sqlite> --db <new.sqlite> [--json]

What it needs

An index IS required -- in fact TWO: diff takes exactly two --db flags, one for the "old" database and one for the "new" one, and both must already exist. Run drag-lint resolve-dbs --project <X.dproj> if unsure which DB covers a given project.

Example

Illustrative only:

drag-lint diff --db drag-lint-before.sqlite --db drag-lint-after.sqlite --json

This would print, as JSON, what changed between the two snapshots.


All features | CLI reference | IDE menus