From 420eb8b3ff12d2a108238148994b10982eacaeb2 Mon Sep 17 00:00:00 2001 From: Robin Jones Date: Wed, 9 Aug 2023 19:49:10 +0100 Subject: [PATCH] Suppress dirty submodules in VSCode (#38) ## Description When running in a dev container, certain submodules show changes in VSCode. GitHub Desktop does not show them. This PR also adds missing Submodules to the devcontainer.json git.ignoredRepositories. ## Motivation and Context Speculative fix. If there is a better way, it is welcome! ## How Has This Been Tested? ## Screenshots ## Types of changes - [ ] Improvement (non-breaking change that adds a new feature) - [ ] Bug fix (fixes an issue) - [ ] Breaking change (breaking change) - [x] Config and build (change in the configuration and build system, has no impact on code or features) ## Checklist: - [ ] My code follows the code style of this project. - [ ] My change requires a change to the documentation. - [ ] I have updated the documentation accordingly. - [ ] I have added tests to cover my changes. - [ ] All new and existing tests passed. Signed-off-by: GITHUB_USER --- .devcontainer/devcontainer.json | 4 +++- .gitmodules | 5 +++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 454918c3..da097326 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -16,8 +16,10 @@ "settings": { "git.ignoredRepositories": [ "libdragon", + "src/libs/libspng", "src/libs/mini.c", - "src/libs/minimp3" + "src/libs/minimp3", + "src/libs/miniz.c" ] } } diff --git a/.gitmodules b/.gitmodules index 5c78ba20..f830561a 100644 --- a/.gitmodules +++ b/.gitmodules @@ -2,15 +2,20 @@ path = libdragon url = https://github.com/DragonMinded/libdragon branch = unstable + ignore = dirty [submodule "src/libs/libspng"] path = src/libs/libspng url = https://github.com/randy408/libspng.git + ignore = dirty [submodule "src/libs/mini.c"] path = src/libs/mini.c url = https://github.com/univrsal/mini.c.git + ignore = dirty [submodule "src/libs/minimp3"] path = src/libs/minimp3 url = https://github.com/lieff/minimp3.git + ignore = dirty [submodule "src/libs/miniz"] path = src/libs/miniz url = https://github.com/richgel999/miniz.git + ignore = dirty