Skip to content

Don't ignore build*, accidently it ignored all files starts with buil…#5051

Merged
danmar merged 2 commits into
cppcheck-opensource:mainfrom
jedrzej-klocek:fixgitignore
May 12, 2023
Merged

Don't ignore build*, accidently it ignored all files starts with buil…#5051
danmar merged 2 commits into
cppcheck-opensource:mainfrom
jedrzej-klocek:fixgitignore

Conversation

@jedrzej-klocek
Copy link
Copy Markdown
Contributor

@jedrzej-klocek jedrzej-klocek commented May 11, 2023

Pattern build* ignores all files in the repo that starts with build... If developer wants to create a new repository from sources .tar.gz, .zip etc. then ignore doesn't track few files. File cmake/buildFiles.cmake is obligatory to proper building
git status --ignored
image

Cmake directories are ignored by pattern build/

@danmar
Copy link
Copy Markdown
Collaborator

danmar commented May 11, 2023

hmm we don't want to ignore those files you list.

but we would like to ignore build folders created by the user.

I don't know how to work around that.

@chrchr-github
Copy link
Copy Markdown
Collaborator

This should do it:
build**/

@jedrzej-klocek
Copy link
Copy Markdown
Contributor Author

I updated .gitignore, like @chrchr-github said. If everything is fine please merge this PR. :)

@danmar danmar merged commit aa6df06 into cppcheck-opensource:main May 12, 2023
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.

3 participants