Skip to content
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

Merged
merged 7 commits into from
Jul 28, 2023

Conversation

greg7mdp
Copy link
Contributor

@greg7mdp greg7mdp commented Jul 27, 2023

  • stop ignoring *.cmake files
  • remove unneeded exclusion !.cicd
  • ignore clangd .cache directory
  • ignore snapshots directories

Copy link
Member

@spoonincode spoonincode left a 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
Copy link
Member

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?

Copy link
Contributor Author

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
Copy link
Member

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?

Copy link
Contributor Author

@greg7mdp greg7mdp Jul 27, 2023

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.

Copy link
Member

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

Copy link
Contributor Author

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

@greg7mdp
Copy link
Contributor Author

honestly, imo, this file should be completely removed

which file? .gitignore?

.gitignore Outdated
*.ninja
\#*
\.#*
CMakeCache.txt
CMakeFiles
cmake_install.cmake
cmake-build-debug/
cmake-build-release/
Copy link
Member

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/.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense... done!

Copy link
Member

@spoonincode spoonincode left a 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 😇

@greg7mdp greg7mdp merged commit 47d20a4 into main Jul 28, 2023
@greg7mdp greg7mdp deleted the gitignore_cleanup branch July 28, 2023 18:10
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