Is there a way to see git history by the date changes were merged to a branch?
A typical git history shows changes based on when the change was made rather than when it was merged. Below is a typical example where a change merged recently is lower in the history because the original change is older.
Change Made Change Merged
last month last month
2 months ago 2 months ago
a year ago yesterday
This makes it very difficult to look at the history of a file and see what recent changes may be causing problems. What I would like to see instead, is a history that traces the branch and shows changes as they are made to the given branch.
Ideally the output would be ordered as:
Change Made Change Merged
a year ago yesterday
last month last month
2 months ago 2 months ago
I have looked at the history in gitlab, used git log, git extensions, git lens, git log --topo-order
.
The concept of --topo-order
makes me believe what I want is theoretically possible, but the output of --topo-order
wasn’t very useful.
7