Skip to content

FR: Absorb should also work when target is ahead of source #10010

Description

@anka-213

Description

I would like to also be able to absorb something from an older commit into a newer one rather than only the reverse.

I can currently express my intent using

jj absorb -f older-commit -t newer-commit

However, that currently just returns "nothing changed", regardless of input. The reverse

jj absorb -f newer-commit -t older-commit

works as expected.

Steps to Reproduce the Problem

  1. Make a commit
  2. Make another commit that touches the same line
  3. jj absorb -f older-commit -t newer-commit

Expected Behavior

The changes should be absorb into the newer commits, just like it does when the target is older than the source.

Actual Behavior

"Nothing changed."

Specifications

  • Platform: Linux
  • Version: jj 0.43.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    polish🪒🐃Make existing features more convenient and more consistent

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions