From a3259cbb0ad1a2c04123828f9433f361c5a30c2c Mon Sep 17 00:00:00 2001 From: Mark Lazarides Date: Fri, 10 Jan 2025 10:44:18 +0000 Subject: [PATCH] modifies lib exclude, adds example lib include explicitly excludes the `_Libraries` directory, and provides example of adding sub directories back in. Should be used for including custom and third party (non -Beckhoff shipped) libraries, improving maintainability --- TwinCAT3.gitignore | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/TwinCAT3.gitignore b/TwinCAT3.gitignore index 7bd6f875..1ee38188 100644 --- a/TwinCAT3.gitignore +++ b/TwinCAT3.gitignore @@ -21,5 +21,11 @@ LineIDs.dbg LineIDs.dbg.bak _Boot/ _CompileInfo/ -_Libraries/ -_ModuleInstall/ \ No newline at end of file +_ModuleInstall/ + +# Exclude all libraries +/**/_Libraries/*/ + +# To include a specific library directory (i.e. third party/custom libs), +# use pattern `!/**/_Libraries//` i.e. `!/**/_Libraries/www.tcunit.org/` +# \ No newline at end of file