Skip to content

Expanding context in diffs

Whether it's reviewing community changes to an Open Source project, or using GitHub Flow on a private project, we all spend a lot of time looking at diffs. But to…

Author

Whether it’s reviewing community changes to an Open Source project, or
using GitHub Flow on
a private project, we all spend a lot of time looking at diffs.
But to really understand a code change, we sometimes need to see more than just
the default three lines of context.

Today we’re excited to announce a new feature that makes this possible.
Using the new unfold button in the gutter of a diff, you can reveal
additional lines of context with a click.

expand

You can keep clicking unfold until you’ve revealed the whole file, and the feature is
available anywhere we render diffs.

Happy code reviewing!

Explore more from GitHub

Product

Product

Updates on GitHub products and features, hot off the press.
The ReadME Project

The ReadME Project

Stories and voices from the developer community.
GitHub Copilot

GitHub Copilot

Don't fly solo. Try 30 days for free.
Work at GitHub!

Work at GitHub!

Check out our current job openings.