Skip to content

af squash

Move edits from the workspace's change into another open change

By default all of the change’s edits move into the change directly below it. Name PATHS to move only the edits at those paths. The workspace’s change remains, with whatever edits are left.

Usage

af squash [OPTIONS] [PATHS]...

Arguments

  • [PATHS]...

    Glob patterns, from the repository root, selecting the edits to move; all if omitted

Options

  • --into <INTO>

    Change to move the edits into, by change ID; defaults to the change below

  • --into-at <INTO_AT>

    Latest commit of the –into change as you last saw it, in hex

    The squash is refused if that change has moved since, so it never overwrites work you haven’t seen.

Global options

Every af command also takes the global options.

Examples

af squash
af squash src/parser.rs --into kxqpzvom

Type to search…

↑↓ navigate↵ selectEsc close