Skip to content

Commit 854c954

Browse files
[gitignore] restore the old Git behavior for the default modules (#3968)
The pattern `modules` was too broad and prevented tracking files in `modules/default/` despite the negation pattern. Changed to `modules/*` to properly exclude only the content of the modules directory while allowing the default modules to be tracked. This issue was likely introduced during the cleanup in #3952. Without this change there are now warn messages like this: ```bash kristjan@debian:~/MagicMirror$ git add modules/default/compliments/compliments.js The following paths are ignored by one of your .gitignore files: modules hint: Use -f if you really want to add them. hint: Disable this message with "git config advice.addIgnoredFile false" ```
1 parent a52baa5 commit 854c954

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ Temporary Items
5555
.Trash-*
5656

5757
# Ignore all modules except the default modules.
58-
modules
58+
modules/*
5959
!modules/default
6060

6161
# Ignore changes to the custom css files but keep the sample and main.

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ planned for 2026-01-01
3737
- [core] refactor: replace `XMLHttpRequest` with `fetch` in `translator.js` (#3950)
3838
- [tests] migrate e2e tests to Playwright (#3950)
3939
- [calendar] refactor: migrate CalendarFetcher to ES6 class and improve error handling (#3958)
40+
- [gitignore] cleanup/simplify .gitignore (#3952, #3954, #3968)
4041

4142
### Fixed
4243

0 commit comments

Comments
 (0)