Bläddra i källkod

Merge pull request #9058 from ThomasWaldmann/patterns-style-1.4

TW 6 dagar sedan
förälder
incheckning
6cd3b162a8
1 ändrade filer med 5 tillägg och 3 borttagningar
  1. 5 3
      src/borg/archiver.py

+ 5 - 3
src/borg/archiver.py

@@ -2563,11 +2563,13 @@ class Archiver:
             (a plain path, not a file pattern). Use this prefix to have the root
             (a plain path, not a file pattern). Use this prefix to have the root
             paths in the patterns file rather than as command line arguments.
             paths in the patterns file rather than as command line arguments.
 
 
-        Pattern style prefix ``P``
+        Pattern style prefix ``P`` (only useful within patterns files)
             To change the default pattern style, use the ``P`` prefix, followed by
             To change the default pattern style, use the ``P`` prefix, followed by
             the pattern style abbreviation (``fm``, ``pf``, ``pp``, ``re``, ``sh``).
             the pattern style abbreviation (``fm``, ``pf``, ``pp``, ``re``, ``sh``).
-            All patterns following this line will use this style until another style
-            is specified.
+            All patterns following this line in the same patterns file will use this
+            style until another style is specified or the end of the file is reached.
+            When the current patterns file is finished, the default pattern style will
+            reset.
 
 
         Exclude pattern prefix ``-``
         Exclude pattern prefix ``-``
             Use the prefix ``-``, followed by a pattern, to define an exclusion.
             Use the prefix ``-``, followed by a pattern, to define an exclusion.