Home / Companies / GitHub / Blog / Post Details
Content Deep Dive

Expanding context in diffs

Blog post from GitHub

Post Details
Company
Date Published
Author
Alan Rogers
Word Count
110
Language
English
Hacker News Points
-
Summary

GitHub has introduced a new feature aimed at enhancing the code review process by allowing users to expand the context around code changes. Traditionally, only three lines of context are shown in a diff, but with the new "unfold" button, users can click to reveal additional lines of context, even up to the entire file, if needed. This feature is available in any area where diffs are rendered, providing a more comprehensive view of code changes for both public and private projects. This improvement is designed to facilitate a deeper understanding of code modifications, thereby improving the review process.