Showing posts with label git. Show all posts
Showing posts with label git. Show all posts

Monday, July 15, 2013

Force git to show diverged branches log

Look like it's not an easy task to make git show the history of two branches simultaneously starting from divergence point.

Consider the following diverging branches:

$ git log  --all --graph --format="%h %d %s"
* c4c7035  (HEAD, master) commit #10 master
* f41150e  commit #9 master
* 41af5d9  Commit #5 master
* 97a530f  commit #4 master
| * 271d605  (new_branch) commit #8 branch
| * 52409b4  commit #7 branch
| * ad3d575  commit #6 branch
|/
* 4a24c6d  commit #3 master
* e21ca0c  commit #2 master
* f02ecbd  commit #1 to master