#6940·jj

jj can't follow file renames?

Author: toby-vantaCreated Jul 8, 2025Updated Sep 24, 2026

Description

jj appears to have some difficulty following file renames when syncing from a remote git repo for files that were also modified in a local change. It considers the file to have been cleared out, but remaining where it is, while the renamed file is installed in its new location. A conflict is shown on rebase, but jj resolve gives no indication that the file was renamed other than one of the options being the deletion of the files contents.

Steps to Reproduce the Problem

  1. Open a PR in Github for some changes on file x/y/z using jj git push -c xyz.
  2. Before that PR is merged, someone else opens another PR in the same repo renaming x/y/z to a/b/c.
  3. That second PR is merged.
  4. Run jj git fetch and then jj rebase -r xyz -d main.

Expected Behavior

It should follow the rename and apply the changes to the renamed file.

Actual Behavior

It throws a conflict and jj resolve doesn't indicate that there was a rename at all.

Specifications

  • Platform: Linux
  • Version: 0.30.0