Skip to content

Update .gitattributes to add exlusion lists. #10267

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

Open
wants to merge 1 commit into
base: development
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,2 +1,11 @@
# Classify all '.function' files as C for syntax highlighting purposes
*.function linguist-language=C

# Ignore listed files when creating an archive
.github/** export-ignore
.git* export-ignore
Copy link
Contributor

Choose a reason for hiding this comment

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

Why not keep .gitattributes in the tarball? Other tools such as IDEs and code indexing tools might use it, to recognize *.function files as C (but I don't know of any tool that does so, I'm just speculating).

.pylintrc export-ignore
.mypy.ini. export-ignore
Comment on lines +7 to +8
Copy link
Contributor

@gilles-peskine-arm gilles-peskine-arm Jul 2, 2025

Choose a reason for hiding this comment

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

I guess .pylintrc and .mypy.ini are only useful to contributors, not for people who only consume the source code. So it may be ok to exclude them. But if you exclude them, it means you can't run all.sh on the tarball release.

In any case, I can't think of a reason to exclude those but include .uncrustify.cfg.

.globalrc export-ignore
Copy link
Contributor

Choose a reason for hiding this comment

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

We should keep this: it's for people who browse the source code in some IDEs.

.travis.yml export-ignore
Copy link
Contributor

Choose a reason for hiding this comment

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

Actually we should just remove .travis.yml, it hasn't been used in a couple of years.

.readthedocs.yaml export-ignore
Copy link
Contributor

Choose a reason for hiding this comment

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

Why shouldn't it be possible to build a readthedocs version from a tarball release?