mantish/ help / docs
Join the waitlist

Identical changes

Review a change once, even when it was made in forty files.

Last updated

Renaming a method, bumping an API call, adding the same attribute to every controller — some pull requests make one edit over and over, in file after file. Reading it forty times proves nothing the first read did not. The Identical Changes tab finds the files whose code changed in exactly the same way and puts them in one pattern, so you read the change once and mark its files reviewed together.

What it looks like

The Identical Changes tab
The Identical Changes tab

On the left are the patterns, each with how many of its files you have reviewed, and how far you are through all of them. Under the list, the number of changed files that are not part of any pattern — those still need reading on their own.

The pattern you pick fills the rest of the tab:

  • its heading is the change itself, with what is certain about it — whether it is the only change in its files, and in how many places each file has it;
  • The change shows it Once, as it was found in every file (indentation and comments set aside), or In a file, with the code around it. The one you pick is how every pattern opens from then on;
  • Applies to lists its files by folder, each with the lines the change is on — click a line to see the change there. Where the window is wide enough, the files stand to the left of the change and stay in view while you scroll.

Click a file to see the change in it (In a file, for that pattern only); double-click it to open its full diff in its own tab.

Review a pattern

  1. Read the change once.
  2. Click Mark N files reviewed (⌘↵; Ctrl+Enter on Windows and Linux) to mark every file of the pattern you have not reviewed yet. Undo in the message that follows puts them back.
  3. Untick any file you would rather read on its own.

Each file's checkbox is its reviewed mark — the same one the file list shows, so ticking a file here ticks it there. A middle click anywhere on a file's row ticks or unticks it too, and a folder's checkbox marks all of its files. When a pattern's files are all reviewed, Next pattern to review takes you on; ⌥↑ and ⌥↓ (Alt+↑ and Alt+↓) step from one pattern to the next. Open full diff, beside a file, opens it in its own tab, at the change.

Reviewed files count towards your review progress like any other.

Options

Identical preview context sets how many unchanged lines In a file keeps before and after the change — from 0 to 10, 3 by default. In the desktop app it is in the gear in the top bar (View settings), and in the command palette (⌘K). In the terminal, press + or -.

To keep a file out of the grouping — generated code that happens to repeat, for example — add it to your ignored files under [group].

Where to find it

AppWhere
Desktop appThe Identical Changes tab, next to Overview
JetBrainsIn development
TerminalI on the review screen; A marks a whole group as read
Was this page helpful?