Skip to content
The Git Crypt

/static/cripta/en/ossada/range-diff/

Menu

GIT-010 · Archaeology

git range-diff

Compares two versions of the same commit series — before and after the rebase.

An ordinary diff compares two trees; range-diff compares two series of commits, pairing each old commit with its likely successor and showing what changed inside each pair — message, diff, order, commits that appeared or vanished.

It is the rebase's audit instrument: the v2 of a series sent for review, the branch before and after the --force-with-lease. The reflog supplies the old tip for free: git range-diff main topico@{1} topico.

$ git range-diff main topico@{1} topico
1:  4be2c9a = 1:  d1f8e3b http: extrai o handler
2:  9c1d2e4 ! 2:  7a5b8c9 http: cache de templates
    @@ Commit message
    -    http: cache de templates
    +    http: cache de templates em memória
The rebase audited, commit by commit.