summaryrefslogtreecommitdiffstats
path: root/docbook/wsdg_src/images/git-triangular-workflow.gv
blob: 809877a8f148cc1e8608eccf6ce77cbb76c13815 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
// dot -Tsvg -o docbook/wsdg_graphics/git-triangular-workflow.svg docbook/wsdg_graphics/git-triangular-workflow.gv

digraph G {
    // XXX Integrate ws.css. Match it manually for now.
    graph [
        fontname = "Georgia",
        fontsize = 12
    ];

    node [
        fontname = "Georgia",
        fontsize = 12,
        shape=box,
        style=rounded
    ];

    edge [
        fontname = "Georgia",
        fontsize = 12
    ];

    rankdir = TB;
    ranksep = 1.0;
    nodesep = 1.0;
    // margin = "0.5,0.5";

    main_repo [
        label=<Main Repository<br/><font point-size="9">gitlab.com/wireshark/wireshark</font>>
    ]

    your_fork [
        label=<Your Fork<br/><font point-size="9">gitlab.com/you/wireshark</font>>
    ]

    your_repo [
        label=<Your Local Repository<br/><font point-size="9">Somewhere on your machine</font>>
    ]

    { rank = same; main_repo; your_fork; }

    // :nw adds needed space
    main_repo -> your_fork:nw [
        label = "Fork (once)",
        style = dashed
    ]

    main_repo -> your_repo [
        label = "Pull"
    ]

    your_repo -> your_fork [
        label = "Push"
    ]

    your_fork -> main_repo [
        label = "Merge Request"
    ]

}