之间对准我用GraphViz的有以下点文件:力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
我该怎么做?
对您的帮助, 提前致谢。
谢谢您的回答,但我已经意识到我的'asciiart'打印不正确,是否可以将远程/主/ HEAD放在顶部?感谢提前。 – GlinesMome
尝试移动子图c1上方的子图c2。节点的定义顺序可能会影响它们在结果图上显示的顺序。这不是保证,但它可能有效。 **没关系,没有工作。我会再看一看。** – EdwinW