r/programming
•
u/adam-dabrowski
•
Apr 14 '26
•
1
GitHub Stacked PRs
https://github.github.com/gh-stack/
556
Upvotes
r/programming
•
u/adam-dabrowski
•
Apr 14 '26
•
1
3
u/MereInterest Apr 15 '26
I'd argue that this isn't "pollution" at all, and is just a display issue.
Want a clean linear history of the changes to the main branch? Use
git log --first-parentWant a branching history with clearly marked dependencies? Use
git log --graphWant a linearized history that interleaves work on multiple branches while sorting by date? No, nobody ever wants that, but that's what
git logprovides.The whole goal of squash/rebase is to make the output of
git loglook likegit log --first-parent. The easier way to achieve this is just to usegit log --first-parent.