我将 GraphViz 与以下点文件一起使用:
digraph "Fast-forward"
{
rankdir=LR;
subgraph master
{
"5c071a6b2c" -> "968bda3251";
}
subgraph branch
{
"35ee8ce6b6" [color="blue"] [style="filled"];
"968bda3251" -> "9754d40473" [weight=0];
"9754d40473" -> "9e59700d33" -> "35ee8ce6b6";
}
subgraph c1
{
rankdir=LR;
rank="same";
"remote/master/HEAD" [shape=box];
"remote/master/HEAD" -> "35ee8ce6b6" [weight=0];
oldmh [label="master/HEAD"] [shape=box] [color="red"] [style="filled"];
newmh [label="master/HEAD"] [shape=box] [color="blue"] [style="filled"];
oldmh -> "968bda3251" [weight=0];
newmh -> "35ee8ce6b6" [weight=0];
}
}
它给了我类似的东西:
但我想要这样的东西:
white | \/ "9754d40473" -> "9e59700d33" -> "35ee8ce6b6"; / /\
5c071a6b2c -> 968bda3251
/\ | | red blue
我怎样才能做到这一点?
为了您的帮助,在此先感谢。