Changes tab

The diff, file by file, with the review threads on their lines.

On this page

The Changes tab is the pull request's diff, file by file, with the code highlighted and each review thread shown under the line it is about. A list of the changed files sits beside the diff. The number on the tab counts the changed files.

#What you see

  • Changed files: the files as a tree, each with its thread states. Choose one to jump to it. Drag its edge to resize it.
  • The diff, with added and removed lines. Lock files and large files (over about 400 changed lines) start folded; open one with its header.
  • Markdown files rendered. A changed Markdown file (.md, .mdx, .markdown) shows as formatted text. Until you choose Show whole file, only the changed parts are shown. Review threads on a Markdown file are in its plain-text view.
  • Threads on their lines. A thread whose code has moved since it was written is placed on the code it was written against, and says it may be a few lines off.
Illustration: A diff with a thread under its line.

#What you can do

  • Move around. n and p go to the next or previous file; ] and [ go to the next or previous review thread.
  • Fold files. Collapse or expand one file, or use Expand all and Collapse all.
  • See more of the file. Expand the gaps between changed parts to read the code around them.
  • Switch a Markdown file's view. Plain text in the file's header shows its diff; Rendered goes back. Limn remembers your choice for every Markdown file.
  • Wrap lines. Wrap lines wraps long lines instead of scrolling sideways.
  • Comment on a line. Comment on this line starts a review comment on GitHub, under your account.
  • Reply to and resolve threads in place, as on the Threads tab.
  • Copy file path, or view this file on GitHub.

Very large pull requests

GitHub sends only part of a very large diff. Limn shows what it has and offers Load full diff. GitHub lists at most 3,000 files in a pull request. A file over 1 MB, or a binary file, is listed without a diff.