Skip to content

gitignore: make the negations work, ignore filesystem/p1 and p2 - #74

Merged
daniel-rossier merged 1 commit into
mainfrom
fix/gitignore-negations
Nov 26, 2026
Merged

daniel-rossier merged 1 commit into
mainfrom
fix/gitignore-negations

Conversation

@daniel-rossier

Copy link
Copy Markdown
Contributor

gitignore has no end-of-line comments: !.gitignore #Don't ignore the ignore file ;-) is one pattern that matches nothing, so the .* rule silently drops every new .gitignore (found in opencn-ng, where build/.gitignore had never been committed). !*.tmpl #... had the same defect.

A local, never-committed filesystem/.gitignore also hid that filesystem/p1/ and filesystem/p2/, written by the deploy, are not ignored at the root: a fresh clone shows them as untracked after a deploy.

  • comments moved to their own line
  • /filesystem/p1/ and /filesystem/p2/ added next to the other deploy products

gitignore has no end-of-line comments, so "!.gitignore #Don't ignore..."
was one pattern matching nothing: the .* rule silently drops every new
.gitignore, which is how a local filesystem/.gitignore could hide that
the deploy's filesystem/p1 and p2 mount points were never ignored at
the root. The *.tmpl negation had the same defect.

Move the comments to their own line and ignore /filesystem/p1/ and
/filesystem/p2/ next to the other deploy products.
@daniel-rossier
daniel-rossier merged commit 1c14d99 into main Nov 26, 2026
2 checks passed
@daniel-rossier
daniel-rossier deleted the fix/gitignore-negations branch November 26, 2026 18:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant