From 5d71d8235419d6495fb101d129f6f41fe336421c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Abril=20Rinc=C3=B3n=20Blanco?= Date: Mon, 28 Oct 2024 11:08:06 +0100 Subject: [PATCH] Add include pattern example for .conanignore --- reference/commands/config.rst | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/reference/commands/config.rst b/reference/commands/config.rst index c4f046bc0bfd..81ac029ad8b4 100644 --- a/reference/commands/config.rst +++ b/reference/commands/config.rst @@ -54,6 +54,14 @@ are copied over to the user's Conan home folder. This file uses `fnmatch `_ patterns to match over the folder contents, excluding those entries that match from the config installation. See `conan-io/command-extensions's .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**: