---
title: "af absorb"
description: "Move each edit into the change below that last changed those lines"
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.forge.workreef.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# af absorb

<!-- Generated by tools/gen-reference.mjs from `af absorb --help`. Change the help text in crates/atoll-forge-cli/src/main.rs, then run `npm run gen:reference`. -->

As jj absorb: each hunk of the change's edits goes into the open change of yours, among those it builds on, that last changed the lines around it, found by annotation. Hunks whose lines main or someone else's change last changed, new files, and hunks that touch lines of two changes stay where they are. The workspace's files do not change.

## Usage

```text
af absorb [OPTIONS] [PATHS]...
```

## Arguments

- `[PATHS]...`

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

## Options

- `-f, --from <FROM>`

  Change to absorb from, by revset; defaults to the workspace's change

- `-t, --into <INTO>`

  Changes to absorb into, by revset; defaults to every open change of yours below

  [alias: --to]

## Global options

Every `af` command also takes the [global options](https://docs.forge.workreef.dev/reference/af/#global-options).

## Examples

```sh
af absorb
af absorb src/parser.rs
```

Source: https://docs.forge.workreef.dev/reference/af/absorb/index.mdx
