gitdags icon indicating copy to clipboard operation
gitdags copied to clipboard

Question: Annotation to multiple commits?

Open tpd-opitz opened this issue 4 years ago • 0 comments

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}

tpd-opitz avatar Dec 07 '20 15:12 tpd-opitz