7
Rules are defined in ini file format where the sections are file glob
8
patterns and the contents of each section are the preferences for files
9
matching that pattern. For example::
17
Preferences like these are useful for commands and plugins wishing to
18
provide custom behaviour for selected files in selected branches.
24
Branch-specific rules are defined in ``.bzrrules`` in the root of the
25
working tree. Default rules for all branches are defined in
26
``BZR_HOME/rules``. Either or both files may be missing. If a rule is
27
matched by a pattern in the branch level file, searching stops.
33
Patterns are ordered and searching stops as soon as one matches.
34
As a consequence, more explicit patterns should be placed towards
35
the top of the file. Rule patterns use exactly the same conventions
36
as ignore patterns. See ``bzr help patterns`` for details.
38
Note: Patterns containing square brackets should be surrounded in
39
quotes to ensure they are corrected parsed.