jubobs / gitdags

A package for drawing educational Git history graphs
218 stars 29 forks source link

Question: Annotation to multiple commits? #13

Open tpd-opitz opened 3 years ago

tpd-opitz commented 3 years ago

How can I add an annotation that has arrows to multiple commits like in the attaches example (read lines)?

git-merge-example

my code:

\begin{figure}[h]
    \centering
    \begin{tikzpicture}
      % Commit DAG
      \gitDAG[grow right sep = 2em]{
        A --  { B --
          C -- D -- E,
          F -- G -- H -- I
        } -- J
      };
        \gittag
          [common] {last common commit} {above=of A} {A}

        \gittag  % how to change this?
          [v0p1]  {parallel change} {above=of C} {E}

      \gitremotebranch
        [origmaster] {origin/master} {above=of E} {E}
      \gitbranch
        {my feature}  {right=of I}  {I}
      \gitHEAD
        {above=of J} {J}
    \end{tikzpicture}
\end{figure}
\end{document}