Skip to content

Add C and C++ to .gitignore - #21

Merged
Pyralys merged 1 commit into
PyralOS:mainfrom
TotoCodeFR:add-c-cpp-gitignore
Nov 5, 2026
Merged

Pyralys merged 1 commit into
PyralOS:mainfrom
TotoCodeFR:add-c-cpp-gitignore

Conversation

@TotoCodeFR

Copy link
Copy Markdown
Member

@TotoCodeFR

Copy link
Copy Markdown
Member Author

also kinda all over the place since i didn't want to mix all comments and kinda regrouped what i wanted together

cc @fuewwa for review in case i'm missing anything (never wrote a line of C or C++ in my life)

@Pyralys
Pyralys merged commit dd1b470 into PyralOS:main Nov 5, 2026
1 check passed

@fuewwa fuewwa left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

really strange .gitignore. also, why we dont creating our own .gitignore? it will be better than just use an template

Comment thread .gitignore
*.a
*.lib

# Executables

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

i think this will be better to add an *.bin also here

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

what would have that extension? we won't put binary files in the source code randomly?

Comment thread .gitignore
*.gch
*.pch

# Linker files

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

where's *.ld?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

i thought i added it, but the PR is now merged so can't really do anything

Comment thread .gitignore
CMakeFiles/
CMakeCache.txt
cmake_install.cmake
Makefile

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

alpine linux officialy uses Makefile, it will REALLY bad idea to remove makefile from the project and change into CMakefiles.txt (sudging on this .gitignore)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

we're using debian now

@TotoCodeFR

Copy link
Copy Markdown
Member Author

really strange .gitignore. also, why we dont creating our own .gitignore? it will be better than just use an template

because i don't know anything about C, C++ and Rust's generated files. we can add to this file later on

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