Skip to content

Commit 8fdf832

Browse files
users/ignoring: #include uses relative paths (#807)
Specified/Clarified what happens (from my observation of behaviour) when recursive `#include` directives are used.
1 parent 68df58f commit 8fdf832

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

users/ignoring.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,9 @@ The ``.stignore`` file contains a list of file or path patterns. The
8080
still relative to the synced folder *root*. Example:
8181
``#include more-patterns.txt``.
8282

83+
Any ``#include`` directives inside a file loaded by ``#include`` require paths specified relative
84+
to the directory containing the loaded file, rather than the synchronised root directory.
85+
8386
- A pattern beginning with a ``!`` prefix negates the pattern: matching files
8487
are *included* (that is, *not* ignored). This can be used to override
8588
more general patterns that follow.

0 commit comments

Comments
 (0)