1 \documentclass[a4paper,leqno]{strayman}
2 \let\numberwithin=\notdef
12 \renewcommand{\ge}{\geqslant}
13 \renewcommand{\le}{\leqslant}
15 \newcommand{\has}{\sqsupseteq}
16 \newcommand{\isin}{\sqsubseteq}
18 \newcommand{\nothaspatch}{\mathrel{\,\not\!\not\relax\haspatch}}
19 \newcommand{\notpatchisin}{\mathrel{\,\not\!\not\relax\patchisin}}
20 \newcommand{\haspatch}{\sqSupset}
21 \newcommand{\patchisin}{\sqSubset}
23 \newcommand{\set}[1]{\mathbb #1}
24 \newcommand{\pa}[1]{\varmathbb #1}
25 \newcommand{\pay}[1]{\pa{#1}^+}
26 \newcommand{\pan}[1]{\pa{#1}^-}
28 \newcommand{\p}{\pa{P}}
29 \newcommand{\py}{\pay{P}}
30 \newcommand{\pn}{\pan{P}}
32 %\newcommand{\hasparents}{\underaccent{1}{>}}
33 %\newcommand{\hasparents}{{%
34 % \declareslashed{}{_{_1}}{0}{-0.8}{>}\slashed{>}}}
35 \newcommand{\hasparents}{>_{\mkern-7.0mu _1}}
36 \newcommand{\areparents}{<_{\mkern-14.0mu _1\mkern+5.0mu}}
38 \renewcommand{\implies}{\Rightarrow}
40 \newcommand{\pancs}[2]{{\mathcal A} ( #1 , #2 ) }
41 \newcommand{\pends}[2]{{\mathcal E} ( #1 , #2 ) }
43 \renewcommand{\land}{\wedge}
51 \desclabelstyle{\nextlinelabel}
53 \item[ $ C \hasparents \set X $ ]
54 The parents of commit $C$ are exactly the set
58 $C$ is a descendant of $D$ in the git commit
59 graph. This is a partial order, namely the transitive closure of
60 $ D \in \set X $ where $ C \hasparents \set X $.
63 Informally, the tree at commit $C$ contains the change
64 made in commit $D$. Does not take account of deliberate reversions by
65 the user or in non-Topbloke-controlled branches; these are considered
66 normal, forward, commits. For merges and Topbloke-generated
67 anticommits, the ``change made'' is only to be thought of as any
68 conflict resolution. This is not a partial order because it is not
71 \item[ $ \p, \py, \pn $ ]
72 A patch $\p$ consists of two sets of commits $\pn$ and $\py$, which
73 are respectively the base and tip git branches. $\p$ may be used
74 where the context requires a set, in which case the statement
75 is to be taken as applying to both $\py$ and $\pn$.
76 All these sets are distinct.
78 \item[ $ \pancs{C}{\set P} $ ]
79 $ \{ A \; | \; A \le C \land A \in \set P \} $
80 i.e. all the ancestors of $C$
81 which are in $\set P$.
83 \item[ $ \pends{C}{\set P} $ ]
84 $ \{ E \; | \; E \in \pancs{C}{\set P}
85 \land \mathop{\not\exists}_{A \in \pancs{C}{\set P}}
86 A \neq E \land E \le A \} $
87 i.e. all $\le$-maximal commits in $\pancs{C}{\set P}$.
93 \[ C \has D \implies C \ge D \tag*{\mbox{No replay:}} \]
95 Unique base: \[ \mathop{\forall}_{C \in \py} \pends{C}{\pn} = \{ B \} \]
97 \section{Test more symbols}
101 $ C \nothaspatch \p $
105 $ \p \notpatchisin C $
107 $ \{ B \} \areparents C $