#10292·jj

`jj status <deleted path>` warns "No matching entries for paths" while showing the deletion

Author: nikosavolaCreated Sep 30, 2026Updated Sep 30, 2026

Description

jj status <path> prints the deletion and then warns that the path matched nothing.

Steps to Reproduce the Problem

  1. Create a repo with a file and delete it in the working copy:
    jj git init
    echo contents > file1
    jj describe -m "add file1"
    jj new -m "delete file1"
    rm file1
  2. Run jj status file1.

Expected Behavior

The deletion is shown and no warning is printed:

Working copy changes:
D file1
...

Actual Behavior

Warning: No matching entries for paths: file1
Working copy changes:
D file1
Working copy  (@) : ...
Parent commit (@-) : ...

Additional context

print_unmatched_explicit_paths() in cli/src/cli_util.rs clears a path only if it exists in one of the trees it is given. cmd_status passes only the working-copy tree (cli/src/commands/status.rs) while the diff is rendered against the parent tree, so a deleted path is present in the parent tree and shown in the output, but never clears the warning. Same shape as #10267 for jj log.

From reading the code, jj absorb and jj squash look like they have the same problem (both unverified end to end):

  • jj absorb checks only the source commit's tree (cli/src/commands/absorb.rs), while absorption works on the diff from the parent tree to the source tree, so a deleted path would be reported as unmatched even though it is absorbable.
  • jj squash checks only each selected_tree (cli/src/commands/squash.rs), which is derived from that same parent-to-source diff; the parent tree is already retained next to it, so including it would be a one-line change.

Specifications

  • Platform: macOS
  • Version: 0.45.1, and still present on main (f8f808f9)