Skip to content

Commit

Permalink
users/ignoring: #include uses relative paths (#807)
Browse files Browse the repository at this point in the history
Specified/Clarified what happens (from my observation of behaviour) when
recursive `#include` directives are used.
  • Loading branch information
sapient-cogbag authored Sep 30, 2023
1 parent 68df58f commit 8fdf832
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions users/ignoring.rst
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ The ``.stignore`` file contains a list of file or path patterns. The
still relative to the synced folder *root*. Example:
``#include more-patterns.txt``.

Any ``#include`` directives inside a file loaded by ``#include`` require paths specified relative
to the directory containing the loaded file, rather than the synchronised root directory.

- A pattern beginning with a ``!`` prefix negates the pattern: matching files
are *included* (that is, *not* ignored). This can be used to override
more general patterns that follow.
Expand Down

0 comments on commit 8fdf832

Please sign in to comment.