소스 검색

Merge pull request #9086 from ThomasWaldmann/patterns-style-master

patterns: clarify scope of default pattern style, fixes #9004
TW 2 일 전
부모
커밋
0277d8b635
1개의 변경된 파일5개의 추가작업 그리고 3개의 파일을 삭제
  1. 5 3
      src/borg/archiver/help_cmd.py

+ 5 - 3
src/borg/archiver/help_cmd.py

@@ -174,11 +174,13 @@ class HelpMixIn:
             (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.
 
-        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
             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 ``-``
             Use the prefix ``-``, followed by a pattern, to define an exclusion.