Even with diffs that have full-file context available, the diff is shown without a line showing which function each change is in. Showing the function as "git diff" or "diff --show-c-function" do would help a lot to put the change in context and aid reviewing.
Seen with C++ code in e.g. https://phabricator.kde.org/D2934 [1] but also in https://secure.phabricator.com/D16677 : src/applications/conpherence/application/PhabricatorConpherenceApplication.php
[1] "git log -p" for this change shows:
diff --git a/daemon/powerdevilcore.cpp b/daemon/powerdevilcore.cpp index 30adb64..6c264ac 100644 --- a/daemon/powerdevilcore.cpp +++ b/daemon/powerdevilcore.cpp @@ -388,6 +388,8 @@ void Core::loadProfile(bool force) } // If the lid is closed, retrigger the lid close signal + // so that "switching profile then closing the lid" has the same result as + // "closing lid then switching profile". if (m_backend->isLidClosed()) { Q_EMIT m_backend->buttonPressed(PowerDevil::BackendInterface::LidClose); }
i.e. it includes the enclosing "void Core::loadProfile(bool force)" function signature in the context.
(I notice your syntax highlighting agrees that c-function contexts are useful! )