Skip to content

Commit

Permalink
Add include pattern example for .conanignore (#3879)
Browse files Browse the repository at this point in the history
  • Loading branch information
AbrilRBS authored Oct 28, 2024
1 parent 8412142 commit d3cf8d9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions reference/commands/config.rst
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,14 @@ are copied over to the user's Conan home folder.
This file uses `fnmatch <https://docs.python.org/3/library/fnmatch.html>`_ patterns
to match over the folder contents, excluding those entries that match from the config installation.
See `conan-io/command-extensions's .conanignore <https://github.com/conan-io/command-extensions/blob/main/.conanignore>`_ for an example of such a file.
You can force certain files to be copied over by using the ``!`` negation syntax:

.. code-block:: text
# Ignore all files
*
# But copy the file named "settings.yml"
!settings.yml
**Examples**:
Expand Down

0 comments on commit d3cf8d9

Please sign in to comment.