retrofit
0.14.0
retrofit.sh

retrofit op squash

Reduce a range of the unsealed tail to its net effect: the
smallest op sequence whose replay leaves the same snapshot. The range takes
op remove's selector; --unshared <file> bounds the squash by the ops that
file holds and reduces the whole unsealed tail when no range is given.

Synopsis

Usage:
  retrofit op squash [<range>] [flags]

Options

Flags:
      --dry-run           print the range's lines as the write would leave them and write nothing
  -h, --help              help for squash
      --help-all          show extended help (vocabulary, semantics, caveats)
      --unshared string   never net, re-mint or remove an op this file holds; compact to the same bound

Global options

Global Flags:
      --as string        output mode: text | json (default "text")
  -C, --chdir string     treat <dir> as the working directory for the entire run
      --config string    retrofit.toml path (overrides discovery; also accepts $RETROFIT_CONFIG)
  -f, --file string      oplog file path; selects a registered [[schema]] path (overrides discovery)
      --no-consolidate   render every advisory occurrence instead of collapsing repeats
  -q, --quiet count      suppress the advisory tier on stderr; stack (-qq) to drop it whole (errors and results still print)
      --schema <name>    registered schema <name> (resolves via the chain when omitted)
  -v, --verbose          reveal info-tier advisories on stderr
Docs: https://docs.retrofit.sh/current/commands/retrofit-op-squash/

Before 1.0, any release may change behavior; the release notes list what changed.

Published .