-
Notifications
You must be signed in to change notification settings - Fork 34
Description
In a typical GitHub workflow, there is a main with short-lived feature or bugfix branches that are merged to the main branch.
git log has a --first-parent option that allow to hide all the commits in the temporary branches and only display the merge commits of the main branch. It can greatly simplify the reading the git history, since only the non-merged branches appear (either long-lived branches or not-yet-merged branches).
I believe GitLab is doing the same for their git log, hiding commits in forks and in temporary branches.
Here's a screenshot the Git Graph extension for Visual Studio Code that implements this option pretty nicely (blue is main, pink is a release branch):
- without
--first-parenton the left - without
--first-parenton the right
(note: the colors between left and right don't necessary refer to the same branches)

