Clean Pull Request Diffs

1 · Gavin Rehkemper · Dec. 31, 2022, midnight
When collaborating on code with others using Git, keeping the overall list of code changes (the “diff”) in a pull request as small as possible - not including lots of unnecessary changes like quotes and tabbing - is an important and considerate thing to do. Why lots of unrelated changes suck A pull request (aka merge request) represents a request to merge a branch that has multiple outstanding commits, with each of those commits representing a variety of lines of code changes. These code changes...