Junk Drawer Logo Junk Drawer

For all those little papers scattered across your desk

I am not the first to notice GitHub's range-diff deficiency; I will not be the last

D. Ben Knoble on 17 Mar 2025 in Blog

Scott Chacon of Pro Git fame is writing about Git again: this time, with (yet another) take on how the company he helped build might be doing it wrong.

In How to do patch-based review with git range-diff, Chacon covers the ground on how to perform review in terms of versions of a branch, stuff Git developers have been doing for years. See my own primer for details on the workflow, especially with GitHub involvement. What’s particularly great about Chacon’s post for GitButler is its link to Why some of us like “interdiff” code review.

This blog post-né-Gist captures many of my own recent thoughts about GitHub:

It is nice to have language to talk about this. I can just see myself writing “Please stop feeding me diff soup: I don’t need a feast, but I would like some seasoning.” (Accompanied, of course, by details on how to improve!)

PS Chacon’s article mentions that you’ll often need to note an original hash or find one in the reflog to compare the old branch version to the new branch version. For git range-diff superpowers, try using git range-diff @{u} @{push} @ to see what’s changed since you pushed.

Notes


Tags:

Categories: Blog

Load Comments
Previous Next
Back to posts