sincecutoff.com
← all changes

jj file edit and delete modify files in any revision

Introduced 2026-10-07 · score 0.98

HOW TO USE IT

When editing or deleting a file in a revision, use `jj file edit` or `jj file delete` with the target path; both default to revision `@`, and descendants are rebased after the commit is rewritten.

jj file edit --revision <REVSET> <FILE>
jj file delete --revision <REVSET> <FILESET>

WHY THIS HELPS

Edit or delete a file in a revision without changing the working copy.

REQUIREMENTS AND LIMITATIONS

  • Version: v0.46.0
  • edit: --revision, -r <REVSET>: Revision to edit; defaults to `@`.
  • edit: --restore-descendants: Preserve descendants' content, rather than their diff, when rebasing.
  • edit: <FILE> (required): File to edit; a new file is created if it does not exist in the revision.
  • delete: --revision, -r <REVSET>: Revision to delete files from; defaults to `@`.
  • delete: --restore-descendants: Preserve descendants' content, rather than their diff, when rebasing.
  • delete: <FILESETS> (required): One or more file or directory paths to delete; filesets are accepted.
  • The commands operate on files in any revision and do not require changing the working copy.

FIRST-PARTY EVIDENCE

Check the installed version and the source before using it. Entry JSON

Report a problem with this card