fix wildcard for text files (#107)
* line endings to lf
* normalizing with edx-configuration, edx-platform, and oxa-tools
* attribution and all unix line endings
* attribution
* fixing text wildcard
* text inclusions instead of binary exclusions
* fixing line endings for vim file
(cherry picked from commit bf782b70b8
)
This commit is contained in:
Родитель
1cd7c95c05
Коммит
bb9fb4702e
|
@ -1,76 +1,90 @@
|
||||||
# based on https://github.com/alexkaratarakis/gitattributes
|
# inspired by https://github.com/alexkaratarakis/gitattributes
|
||||||
|
|
||||||
## Default
|
## Default
|
||||||
* text=auto eol=lf
|
* text=auto
|
||||||
|
|
||||||
## Python Binary files
|
## Repo configurations
|
||||||
*.db binary
|
.*coveragerc* text eol=lf
|
||||||
*.p binary
|
.editorconfig text eol=lf
|
||||||
*.pkl binary
|
.gitattributes text eol=lf
|
||||||
*.pyc binary
|
.gitkeep text eol=lf
|
||||||
*.pyd binary
|
.*ignore* text eol=lf
|
||||||
*.pyo binary
|
.npmrc text eol=lf
|
||||||
|
*.tf text eol=lf
|
||||||
|
vim text eol=lf
|
||||||
|
gitconfig text eol=lf
|
||||||
|
inventory text eol=lf
|
||||||
|
pylintrc* text eol=lf
|
||||||
|
|
||||||
## GRAPHICS
|
## Script
|
||||||
*.ai binary
|
*.bat text eol=lf
|
||||||
*.bmp binary
|
*.cmd text eol=lf
|
||||||
*.eps binary
|
*.mk text eol=lf
|
||||||
*.gif binary
|
*.patch text eol=lf
|
||||||
*.ico binary
|
*.ps1 text eol=lf
|
||||||
*.jng binary
|
*.py text eol=lf
|
||||||
*.jp2 binary
|
*.sh text eol=lf
|
||||||
*.jpg binary
|
Dockerfile text eol=lf
|
||||||
*.jpeg binary
|
Makefile text eol=lf
|
||||||
*.jpx binary
|
makefile text eol=lf
|
||||||
*.jxr binary
|
Vagrantfile text eol=lf
|
||||||
*.pdf binary
|
|
||||||
*.png binary
|
|
||||||
*.psb binary
|
|
||||||
*.psd binary
|
|
||||||
*.svg binary
|
|
||||||
*.svgz binary
|
|
||||||
*.tif binary
|
|
||||||
*.tiff binary
|
|
||||||
*.wbmp binary
|
|
||||||
*.webp binary
|
|
||||||
|
|
||||||
## VIDEO
|
## Code
|
||||||
*.3gpp binary
|
*.c text eol=lf
|
||||||
*.3gp binary
|
*.groovy text eol=lf
|
||||||
*.as binary
|
*.php text eol=lf
|
||||||
*.asf binary
|
*.sql text eol=lf
|
||||||
*.asx binary
|
|
||||||
*.fla binary
|
|
||||||
*.flv binary
|
|
||||||
*.m4v binary
|
|
||||||
*.mng binary
|
|
||||||
*.mov binary
|
|
||||||
*.mp4 binary
|
|
||||||
*.mpeg binary
|
|
||||||
*.mpg binary
|
|
||||||
*.ogv binary
|
|
||||||
*.swc binary
|
|
||||||
*.swf binary
|
|
||||||
*.webm binary
|
|
||||||
|
|
||||||
## ARCHIVES
|
## Web
|
||||||
*.7z binary
|
*.coffee text eol=lf
|
||||||
*.gz binary
|
*.css text eol=lf
|
||||||
*.jar binary
|
*.html* text eol=lf
|
||||||
*.rar binary
|
*.less text eol=lf
|
||||||
*.tar binary
|
*.scss text eol=lf
|
||||||
*.zip binary
|
|
||||||
|
|
||||||
## Localization
|
## Web Templates
|
||||||
*.mo binary
|
*.mustache text eol=lf
|
||||||
|
*.underscore text eol=lf
|
||||||
|
|
||||||
## FONTS
|
## Settings, Data, and Declarative Scripts
|
||||||
*.bcmap binary
|
*.cfg text eol=lf
|
||||||
*.ttf binary
|
*.cnf text eol=lf
|
||||||
*.eot binary
|
*.conf text eol=lf
|
||||||
*.otf binary
|
*.csv text eol=lf
|
||||||
*.woff binary
|
*.diff text eol=lf
|
||||||
*.woff2 binary
|
*.ini text eol=lf
|
||||||
|
*.j2 text eol=lf
|
||||||
|
*.json text eol=lf
|
||||||
|
*.sjson text eol=lf
|
||||||
|
*.xml text eol=lf
|
||||||
|
*.XML text eol=lf
|
||||||
|
*.yaml text eol=lf
|
||||||
|
*.yml text eol=lf
|
||||||
|
config text eol=lf
|
||||||
|
|
||||||
## Misc
|
## Documentation and Content
|
||||||
*.dat binary
|
*.example text eol=lf
|
||||||
|
*.feature text eol=lf
|
||||||
|
*.log text eol=lf
|
||||||
|
*.md text eol=lf
|
||||||
|
*.plain text eol=lf
|
||||||
|
*.po text eol=lf
|
||||||
|
*.properties text eol=lf
|
||||||
|
*.rst text eol=lf
|
||||||
|
*.srt text eol=lf
|
||||||
|
*.txt* text eol=lf
|
||||||
|
*.TXT text eol=lf
|
||||||
|
*.vtt text eol=lf
|
||||||
|
AUTHORS text eol=lf
|
||||||
|
COPYING text eol=lf
|
||||||
|
LICENSE text eol=lf
|
||||||
|
README text eol=lf
|
||||||
|
|
||||||
|
# list built using the following commands
|
||||||
|
#
|
||||||
|
# files WITH extensions
|
||||||
|
# find . -type f -printf '%f\n' | grep -i "\." | sed 's|.*\.||' | grep -v -i "^\(db\|pkl\|pyc\|pyd\|pyo\|ai\|bmp\|eps\|gif\|ico\|jng\|jp2\|jpg\|jpeg\|jpx\|jxr\|pdf\|png\|psb\|psd\|svg\|graphml\|svgz\|tif\|tiff\|wbmp\|webp\|3gpp\|3gp\|as\|asf\|asx\|fla\|flv\|m4v\|mng\|mov\|mp4\|mpeg\|mpg\|ogv\|swc\|swf\|webm\|7z\|gz\|jar\|rar\|tar\|zip\|mo\|bcmap\|ttf\|eot\|otf\|woff\|woff2\|dat\|dll\|exe\|wav\|cer\|config\|content\|crt\|cscfg\|csdef\|cur\|DS_Store\|fic\|idx\|key\|ogg\|lci\|lib\|man\|metagen\|mui\|snk\|winmd\|xsd\|csplugin\|exp\|nupkg\|pack\|pdb\|pem\|pfx\|pub\|ps1xml\|sample\|assemblylookupcache\|psd1\|notyaml\|mp99\|out\|noci\)$" | sort | uniq
|
||||||
|
#
|
||||||
|
# files with NO extensions
|
||||||
|
# find . -type f | grep -v "\.git" | sed 's|.*/||' | grep -v "\." | grep -v -i "font\|default_mdsd\|rsa\|10periodic\|20unattended-upgrade\|bash_profile\|browsermob-proxy\|go\-agent\-env\-vars\|ec2_\|mongodb_\|munin\-edx\|rds_local\|route53_2_1_1_0\|ssh_key_forward\|tag_environment_prod\|util_map\|vimrc\|vpc_lookup\|x11_display" | sort | uniq
|
||||||
|
#
|
Загрузка…
Ссылка в новой задаче