mlange-42 / git-graph

Command line tool to show clear git graphs arranged for your branching model

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Enhance sorting of branches into visual columns

mlange-42 opened this issue · comments

Problem: currently, branches are evaluated from top to bottom, which may result in the visualization on the left. Better would be the result on the right.

o         o
|\        |\
| \       | \
o  *      o  *
|\_|      |\ |
|  |\     | *|
|  | *    |/ |
| _|/     *  *
|/ |      | /
*  *      |/
| /       *
|/
*

Implemented "shortest-first-scheduling" that achieves the desired effect in b5da905.