For example, if I do:
git log --oneline --graph --decorate master branch dcfadf1
I see all commits:
* e8599bb (HEAD -> branch) branch5
* 2fe1c92 branch4
| * f083d02 (master) master5
| * d33bf64 master4
|/
* a286c74 master3
* dcfadf1 master2
* 6f58634 master1
However, I'd like to see instead only:
* e8599bb (HEAD -> branch) branch5
| * f083d02 (master) master5
|/
* a286c74 master3
* dcfadf1 master2
to better understand how those specific commits are related.
Why each of those commits those should appear:
e8599bb(branch),f083d02(master) anddcfadf1: given on the command linea286c74: merge base (most recent common ancestor) of two of the commits given on the command line (branchandmaster).
I can't use --simplify-by-decoration, since my actual repo has a lot of branches I don't care about, and furthermore it removes merge bases by default: http://git.661346.n2.nabble.com/quot-git-log-simplify-by-decoration-quot-but-including-branch-amp-merge-points-td6825766.html
Here is the test repo which corresponds to the above git log commands: https://github.com/cirosantilli/test-so-46270360
git clone https://github.com/cirosantilli/test-so-46270360
cd test-so-46270360
git checkout master
git checkout -