Skip to content

Commit 0277d8b

Browse files
Merge pull request #9086 from ThomasWaldmann/patterns-style-master
patterns: clarify scope of default pattern style, fixes #9004
2 parents 5df6021 + 3a9088f commit 0277d8b

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/borg/archiver/help_cmd.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,11 +174,13 @@ class HelpMixIn:
174174
(a plain path, not a file pattern). Use this prefix to have the root
175175
paths in the patterns file rather than as command line arguments.
176176
177-
Pattern style prefix ``P``
177+
Pattern style prefix ``P`` (only useful within patterns files)
178178
To change the default pattern style, use the ``P`` prefix, followed by
179179
the pattern style abbreviation (``fm``, ``pf``, ``pp``, ``re``, ``sh``).
180-
All patterns following this line will use this style until another style
181-
is specified.
180+
All patterns following this line in the same patterns file will use this
181+
style until another style is specified or the end of the file is reached.
182+
When the current patterns file is finished, the default pattern style will
183+
reset.
182184
183185
Exclude pattern prefix ``-``
184186
Use the prefix ``-``, followed by a pattern, to define an exclusion.

0 commit comments

Comments
 (0)