Skip to content

Commit 3f543fb

Browse files
committed
unison-manual.tex: document the assoc pathspec pattern
1 parent 52342b5 commit 3f543fb

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

doc/unison-manual.tex

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1912,6 +1912,20 @@
19121912
preferpartial = del Path prefix*.txt
19131913
preferpartial = Path prefix.txt
19141914
\end{verbatim}
1915+
\item
1916+
An associated string can also be defined and recorded without setting the
1917+
corresponding preference by an assoc pattern, that is any pattern prefixed by
1918+
\texttt{assoc} separated exactly by one space. Any (preceding or following)
1919+
(positive) pattern can set the preference independently without having to
1920+
specify an associated string.
1921+
1922+
For example one can define a generic merge command without enbaling the
1923+
\verb|merge| preference, then select some paths to merge without having to give
1924+
the merge command again and again:
1925+
\begin{verbatim}
1926+
merge = assoc Name *.txt -> mergecmd CURRENT1 CURRENT2
1927+
merge = Path prefix*.txt
1928+
\end{verbatim}
19151929
\end{itemize}
19161930
Some examples of path patterns appear in \sectionref{ignore}{Ignoring
19171931
Paths}.

0 commit comments

Comments
 (0)