-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.gitignore
cleanup - mostly stop ignoring *.cmake
files.
#1460
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
honestly, imo, this file should be completely removed
@@ -94,3 +91,5 @@ CMakeLists.txt.user | |||
|
|||
node_modules | |||
package-lock.json | |||
|
|||
snapshots |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
when is this one a problem?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure where these come from, I just saw these show up in my "Untracked" files:
~/github/enf/leap gitignore_cleanup:main ⇡5 !1 ?14 ❯ ls snapshots plugins/snapshots
plugins/snapshots:
snapshot-000000062d3e86cb288ecdfd37e4ba5f313b97c04b3c8f47e010275c4a37fe62.bin
snapshots:
snapshot-000000062d3e86cb288ecdfd37e4ba5f313b97c04b3c8f47e010275c4a37fe62.bin snapshot-00000006c38bac7f934ac5cf688d8530bac0d112e0404548e391aef2b404bda2.bin
@@ -7,23 +7,20 @@ | |||
*.wast.hpp | |||
*.dot | |||
*.abi.hpp | |||
*.cmake |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't quite understand the removal of this one... won't it cause all the various cmake files in the build dir be flagged? Like CPackSourceConfig.cmake
and CTestTestfile.cmake
etc etc?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have this rule in .gitignore
:
[Bb]uild*/*
which causes everything in my build dirs to be ignored.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah, true. but if the gitignore only supports build directories named build*
or cmake-build-{release,debug}
, then quite a bit of other cruft can likely be removed too
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm all for cleaning it up further. I think we should assume that the build dirs are already excluded, as this is normally the case
which file? |
.gitignore
Outdated
*.ninja | ||
\#* | ||
\.#* | ||
CMakeCache.txt | ||
CMakeFiles | ||
cmake_install.cmake | ||
cmake-build-debug/ | ||
cmake-build-release/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we change these to cmake-build-*/
please. I have for example cmake-build-debug-clang11/
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense... done!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
honestly, imo, this file should be completely removed
which file?
.gitignore
?
yeah, I usually abstain from .gitignore reviews because I'd rather just have the file removed. I'm only here on this one since you tagged me 😇
*.cmake
files!.cicd
.cache
directorysnapshots
directories