mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-04-29 05:15:05 +02:00
Refine .gitattributes and clean .gitignore
Improve language/statistics settings and tidy ignore rules: .gitattributes now marks *.func as detectable, excludes ct/headers/* and markdown docs from language stats, classifies generated/config files (json/lock/yml) as linguist-generated, and enforces text=auto eol=lf. .gitignore was reorganized and simplified: .vscode is explicitly preserved (!.vscode/), obsolete debug/temp entries were removed, and overly broad ignores for compiled artifacts and Git metadata were dropped to avoid accidentally hiding repository files.
This commit is contained in:
13
.gitattributes
vendored
13
.gitattributes
vendored
@@ -4,10 +4,17 @@
|
||||
*.sh linguist-detectable=true
|
||||
*.bash linguist-language=Shell
|
||||
*.func linguist-language=Shell
|
||||
*.func linguist-detectable=true
|
||||
*.install linguist-language=Shell
|
||||
|
||||
# ---------------------------------------
|
||||
# Exclude header art from stats
|
||||
# ---------------------------------------
|
||||
ct/headers/* linguist-documentation
|
||||
|
||||
# ---------------------------------------
|
||||
# Exclude documentation from stats
|
||||
# ---------------------------------------
|
||||
*.md linguist-documentation
|
||||
README.md linguist-documentation
|
||||
CONTRIBUTING.md linguist-documentation
|
||||
@@ -15,13 +22,11 @@ SECURITY.md linguist-documentation
|
||||
|
||||
# ---------------------------------------
|
||||
# Exclude generated/config files
|
||||
*.json linguist-generated
|
||||
*.lock linguist-generated
|
||||
*.yml linguist-generated
|
||||
*.yaml linguist-generated
|
||||
# ---------------------------------------
|
||||
.github/** linguist-generated
|
||||
.vscode/** linguist-generated
|
||||
|
||||
# ---------------------------------------
|
||||
# Standard text handling
|
||||
# ---------------------------------------
|
||||
* text=auto eol=lf
|
||||
|
||||
28
.gitignore
vendored
28
.gitignore
vendored
@@ -2,17 +2,14 @@
|
||||
.DS_Store
|
||||
Thumbs.db
|
||||
|
||||
# Editor & IDE files (keeping .vscode settings but ignoring unnecessary metadata)
|
||||
# Editor & IDE files
|
||||
!.vscode/
|
||||
.vscode/*.workspace
|
||||
.vscode/*.tmp
|
||||
|
||||
# Log and Cache files
|
||||
# Log files
|
||||
logs/
|
||||
*.log
|
||||
npm-debug.log*
|
||||
yarn-debug.log*
|
||||
yarn-error.log*
|
||||
|
||||
# Install scripts and temporary files
|
||||
install/tmp/
|
||||
@@ -26,7 +23,7 @@ vm/*.vmdk
|
||||
vm/*.iso
|
||||
vm/*.bak
|
||||
|
||||
# Miscellaneous temporary or unnecessary files
|
||||
# Miscellaneous temporary files
|
||||
*.bak
|
||||
*.swp
|
||||
*.swo
|
||||
@@ -34,22 +31,7 @@ vm/*.bak
|
||||
*.tmp
|
||||
*.backup
|
||||
|
||||
# JSON configuration backups
|
||||
# JSON temporary files
|
||||
json/
|
||||
json/*.bak
|
||||
json/*.tmp
|
||||
json/.vscode/
|
||||
|
||||
# Ignore compiled binaries or packaged artifacts
|
||||
*.exe
|
||||
*.dll
|
||||
*.bin
|
||||
*.deb
|
||||
*.rpm
|
||||
*.tar.gz
|
||||
*.zip
|
||||
*.tgz
|
||||
|
||||
# Ignore repository metadata or Git itself
|
||||
.git/
|
||||
.gitignore
|
||||
.vscode/settings.json
|
||||
|
||||
Reference in New Issue
Block a user