1
0
mirror of https://github.com/gitattributes/gitattributes.git synced 2025-01-22 00:08:52 -05:00

Format gitattributes files

This commit is contained in:
Richie Bendall 2019-04-20 12:35:18 +12:00
parent 98c843fb2b
commit 3bbc79c5e7
No known key found for this signature in database
GPG Key ID: 1C6A99DFA9D306FC
19 changed files with 326 additions and 318 deletions

13
.gitattributes vendored
View File

@ -1,12 +1,19 @@
# THIS IS ONLY FOR THE gitattributes REPOSITORY.
# Handle line endings automatically for files detected as text
# and leave all files detected as binary untouched.
* text=auto
* text=auto
#
# The above will handle all files NOT found below
#
# These files are text and should be normalized (Convert crlf => lf)
*.gitattributes text
.gitignore text
*.md text
.gitignore text
*.md text
#
# Exclude files from exporting
#
.gitattributes export-ignore
.gitignore export-ignore

View File

@ -1,6 +1,6 @@
# Handle line endings automatically for files detected as text
# and leave all files detected as binary untouched.
* text=auto
* text=auto
# Ada files
*.ada text diff=ada

View File

@ -1,6 +1,6 @@
# Handle line endings automatically for files detected as text
# and leave all files detected as binary untouched.
* text=auto
* text=auto
#
# The above will handle all files NOT found below

View File

@ -1,36 +1,36 @@
# Sources
*.c text diff=c
*.cc text diff=cpp
*.cxx text diff=cpp
*.cpp text diff=cpp
*.c++ text diff=cpp
*.hpp text diff=cpp
*.h text diff=c
*.h++ text diff=cpp
*.hh text diff=cpp
*.c text diff=c
*.cc text diff=cpp
*.cxx text diff=cpp
*.cpp text diff=cpp
*.c++ text diff=cpp
*.hpp text diff=cpp
*.h text diff=c
*.h++ text diff=cpp
*.hh text diff=cpp
# Compiled Object files
*.slo binary
*.lo binary
*.o binary
*.obj binary
*.slo binary
*.lo binary
*.o binary
*.obj binary
# Precompiled Headers
*.gch binary
*.pch binary
*.gch binary
*.pch binary
# Compiled Dynamic libraries
*.so binary
*.so binary
*.dylib binary
*.dll binary
*.dll binary
# Compiled Static libraries
*.lai binary
*.la binary
*.a binary
*.lib binary
*.lai binary
*.la binary
*.a binary
*.lib binary
# Executables
*.exe binary
*.out binary
*.app binary
*.exe binary
*.out binary
*.app binary

View File

@ -1,5 +1,5 @@
# Auto detect text files and perform LF normalization
# https://www.davidlaing.com/2012/09/19/customise-your-gitattributes-to-become-a-git-ninja/
* text=auto
* text=auto
*.cs text diff=csharp

View File

@ -2,53 +2,53 @@
# Auto detect text files and perform LF normalization
# https://www.davidlaing.com/2012/09/19/customise-your-gitattributes-to-become-a-git-ninja/
* text=auto
* text=auto
#
# The above will handle all files NOT found below
#
# Documents
*.bibtex text diff=bibtex
*.doc diff=astextplain
*.DOC diff=astextplain
*.docx diff=astextplain
*.DOCX diff=astextplain
*.dot diff=astextplain
*.DOT diff=astextplain
*.pdf diff=astextplain
*.PDF diff=astextplain
*.rtf diff=astextplain
*.RTF diff=astextplain
*.md text
*.tex text diff=tex
*.adoc text
*.textile text
*.bibtex text diff=bibtex
*.doc diff=astextplain
*.DOC diff=astextplain
*.docx diff=astextplain
*.DOCX diff=astextplain
*.dot diff=astextplain
*.DOT diff=astextplain
*.pdf diff=astextplain
*.PDF diff=astextplain
*.rtf diff=astextplain
*.RTF diff=astextplain
*.md text
*.tex text diff=tex
*.adoc text
*.textile text
*.mustache text
*.csv text
*.tab text
*.tsv text
*.sql text
*.csv text
*.tab text
*.tsv text
*.sql text
# Graphics
*.png binary
*.jpg binary
*.jpeg binary
*.gif binary
*.tif binary
*.tiff binary
*.ico binary
*.png binary
*.jpg binary
*.jpeg binary
*.gif binary
*.tif binary
*.tiff binary
*.ico binary
# SVG treated as an asset (binary) by default.
*.svg text
*.svg text
# If you want to treat it as text,
# use the following line instead.
# *.svg binary
# *.svg binary
*.eps binary
*.eps binary
#
# Exclude files from exporting
#
.gitattributes export-ignore
.gitignore export-ignore
.gitignore export-ignore

View File

@ -3,93 +3,93 @@
#
# Delphi form module
*.dfm text
*.dfm text
# Delphi project options file
*.dof text
*.dof text
# Desktop configuration
*.dsk binary
*.dsk binary
#
# General
#
# Text file
*.txt text
*.txt text
# Gettext Portable Object
*.po binary
*.po binary
# Backup
*.bak binary
*.bak binary
# Config file
*.cfg text
*.cfg text
# Compiled Help File - contains html. See also package chm
*.chm binary
*.chm binary
# Comma Separated Values text file format
*.csv text
*.csv text
# Directly executable program
*.exe binary
*.exe binary
# Help file
*.hlp binary
*.hlp binary
# Initialization file
*.ini text
*.ini text
# OpenDocument text document
*.odt text
*.odt text
# Portable Document Format
*.pdf text
*.pdf text
# PostScript
*.ps text
*.ps text
# Rich Text Format text file
*.rtf text
*.rtf text
#
# Image
#
# Portable network graphic
*.png binary
*.png binary
# Bitmap
*.bmp binary
*.bmp binary
# Icon
*.ico binary
*.ico binary
# Pixmap
*.xpm binary
*.xpm binary
# Portable pixmap
*.ppm binary
*.ppm binary
# Portable graymap
*.pgm binary
*.pgm binary
# Portable bitmap
*.pbm binary
*.pbm binary
# Lossy graphics file
*.jpg binary
*.jpg binary
#
# XML
#
*.xml text
*.dtd text
*.xsd text
*.xsl text
*.xml text
*.dtd text
*.xsd text
*.xsl text
#
# Web
@ -99,37 +99,37 @@
*.html text diff=html
# Cascading style sheet
*.css text diff=css
*.css text diff=css
#
# Archive
#
# tape archive
*.tar binary
*.tar binary
# archive file
*.zip binary
*.zip binary
#
# Database
#
# Database file
*.dbf binary
*.dbf binary
# Multiple index file
*.mdx binary
*.mdx binary
#
# Spreadsheet
#
# OpenOffice.org Calc spreadsheet File Format
*.ods binary
*.ods binary
# Microsoft Excel File Format
*.xls binary
*.xls binary
# Microsoft Office Open XML Excel File Format
*.xlsx binary

View File

@ -17,7 +17,7 @@
# - Fix automatically with `git apply --whitespace=fix`.
# Auto-detect text files, ensure they use LF.
* text=auto eol=lf
* text=auto eol=lf
*.css text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 diff=css
*.engine text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 diff=php

View File

@ -1,9 +1,9 @@
# Handle line endings automatically for files detected as text
# and leave all files detected as binary untouched.
* text=auto
* text=auto
# Fortran files
*.f text diff=fortran
*.f text diff=fortran
*.f90 text diff=fortran
*.f95 text diff=fortran
*.f03 text diff=fortran

View File

@ -1,8 +1,8 @@
# Handle line endings automatically for files detected as text
# and leave all files detected as binary untouched.
* text=auto
* text=auto
# Fountain files
*.fountain text diff=fountain
*.pdf binary
*.fdx text
*.pdf binary
*.fdx text

View File

@ -1,6 +1,6 @@
# Handle line endings automatically for files detected as text
# and leave all files detected as binary untouched.
* text=auto
* text=auto
#
# The above will handle all files NOT found below

View File

@ -1,3 +1,3 @@
# compare .pbxproj files as binary and always merge as union
*.pbxproj binary -merge=union
*.m text diff=objc
*.m text diff=objc

View File

@ -1,62 +1,62 @@
# Lazarus Project Information file (stored in XML; contains project-specific settings)
*.lpi text
*.lpi text
# Lazarus Program file; contains Pascal source of main program
*.lpr text
*.lpr text
# Lazarus Form file; contains configuration information for all objects on a form
# (stored in a Lazarus-specific format; the actions are described by Pascal source code in a corresponding *.pas file)
*.lfm text
*.lfm text
# Unit with Pascal code (typically for a form stored in a corresponding *.lfm file)
*.pas text diff=pascal
*.pas text diff=pascal
# Pascal code
*.pp text diff=pascal
*.pp text diff=pascal
# Lazarus Resource file (this is a generated file; not to be confused with a Windows resource file).
*.lrs text
*.lrs text
# Compiled unit, symbols part.
*.ppu binary
*.ppu binary
# (1) Compiled unit, code part.
# (2) Compiled code from other compilers (e.g. gcc)
*.o binary
*.o binary
# Object resource, automatically generated from {$R} directive.
*.or text
*.or text
# (1) Compiled unit, code part for smartlinking (on some platforms)
# (2) Compiled code from other compilers (e.g. gcc) linked into a static library
*.a binary
*.a binary
# Lazarus package information file. (stored in XML; contains package-specific settings)
*.lpk text
*.lpk text
# Include file
*.inc text
*.inc text
# Lazarus Project Session file. See Project Options -> Save session information in
*.lps text
*.lps text
# Lazarus Resourcestring table created when saving a lfm file and i18n is enabled. It contains the TTranslateString properties of the lfm.
*.lrt text
*.lrt text
# Resourcestring table created by the compiler for every unit with a resourcestring section.
*.rst text
*.rst text
# Resourcestring table in JSON format created by FPC 2.7.1 for units with resourcestring section.
*.rsj text
*.rsj text
# Compilation session for a project
*.compiled text
# Resource file
*.res text
*.res text
# Lazarus resource form file
*.rc text
*.rc text
# Icon file
*.ico binary
*.ico binary

View File

@ -2,5 +2,5 @@
# Source files
# ============
*.pl text diff=perl
*.pm text diff=perl
*.pl text diff=perl
*.pm text diff=perl

View File

@ -2,20 +2,20 @@
# Source files
# ============
*.pxd text diff=python
*.py text diff=python
*.py3 text diff=python
*.pyw text diff=python
*.pyx text diff=python
*.pxd text diff=python
*.py text diff=python
*.py3 text diff=python
*.pyw text diff=python
*.pyx text diff=python
# Binary files
# ============
*.db binary
*.p binary
*.pkl binary
*.pyc binary
*.pyd binary
*.pyo binary
*.db binary
*.p binary
*.pkl binary
*.pyc binary
*.pyd binary
*.pyo binary
# Note: .db, .p, and .pkl files are associated
# with the python modules ``pickle``, ``dbm.*``,

View File

@ -2,11 +2,10 @@
# Source files
# ============
*.Rdata text
*.rdb binary
*.rds binary
*.Rd text
*.Rdx binary
*.Rmd text
*.R text
*.Rdata text
*.rdb binary
*.rds binary
*.Rd text
*.Rdx binary
*.Rmd text
*.R text

View File

@ -1,4 +1,6 @@
* text=auto
# Auto detect text files and perform LF normalization
# https://www.davidlaing.com/2012/09/19/customise-your-gitattributes-to-become-a-git-ninja/
* text=auto
*.frm -text
*.val -text
@ -7,5 +9,5 @@
*.obj -text
*.dbi -text
*.sec -text
*.css -text diff=css
*.js eol=lf
*.css text diff=css
*.js seol=lf

View File

@ -1,14 +1,14 @@
###############################################################################
# Set default behavior to automatically normalize line endings.
###############################################################################
* text=auto
* text=auto
###############################################################################
# Set the merge driver for project and solution files
#
# Merging from the command prompt will add diff markers to the files if there
# are conflicts (Merging from VS is not affected by the settings below, in VS
# the diff markers are never inserted). Diff markers may cause the following
# the diff markers are never inserted). Diff markers may cause the following
# file extensions to fail to load in VS. An alternative would be to treat
# these files as binary and thus will always conflict and require user
# intervention with every merge. To do so, just comment the entries below and

View File

@ -9,192 +9,192 @@
# Note that binary is a macro for -text -diff.
######################################################################
## AUTO-DETECT
# Auto detect
## Handle line endings automatically for files detected as
## text and leave all files detected as binary untouched.
## This will handle all files NOT defined below.
* text=auto
* text=auto
## SOURCE CODE
*.bat text eol=crlf
*.coffee text
*.css text
*.htm text diff=html
*.html text diff=html
*.inc text
*.ini text
*.js text
*.json text
*.jsx text
*.less text
*.od text
*.onlydata text
*.php text diff=php
*.pl text
*.py text diff=python
*.rb text diff=ruby
*.sass text
*.scm text
*.scss text
*.sh text eol=lf
*.sql text
*.styl text
*.tag text
*.ts text
*.tsx text
*.vue text
*.xml text
*.xhtml text diff=html
# Source code
*.bat text eol=crlf
*.coffee text
*.css text
*.htm text diff=html
*.html text diff=html
*.inc text
*.ini text
*.js text
*.json text
*.jsx text
*.less text
*.od text
*.onlydata text
*.php text diff=php
*.pl text
*.py text diff=python
*.rb text diff=ruby
*.sass text
*.scm text
*.scss text
*.sh text eol=lf
*.sql text
*.styl text
*.tag text
*.ts text
*.tsx text
*.vue text
*.xml text
*.xhtml text diff=html
## DOCKER
*.dockerignore text
Dockerfile text
# Docker
*.dockerignore text
Dockerfile text
## DOCUMENTATION
*.ipynb text
*.markdown text
*.md text
*.mdwn text
*.mdown text
*.mkd text
*.mkdn text
*.mdtxt text
*.mdtext text
*.txt text
AUTHORS text
CHANGELOG text
CHANGES text
CONTRIBUTING text
COPYING text
copyright text
*COPYRIGHT* text
INSTALL text
license text
LICENSE text
NEWS text
readme text
*README* text
TODO text
# Documentation
*.ipynb text
*.markdown text
*.md text
*.mdwn text
*.mdown text
*.mkd text
*.mkdn text
*.mdtxt text
*.mdtext text
*.txt text
AUTHORS text
CHANGELOG text
CHANGES text
CONTRIBUTING text
COPYING text
copyright text
*COPYRIGHT* text
INSTALL text
license text
LICENSE text
NEWS text
readme text
*README* text
TODO text
## TEMPLATES
*.dot text
*.ejs text
*.haml text
*.handlebars text
*.hbs text
*.hbt text
*.jade text
*.latte text
*.mustache text
*.njk text
*.phtml text
*.tmpl text
*.tpl text
*.twig text
# Templates
*.dot text
*.ejs text
*.haml text
*.handlebars text
*.hbs text
*.hbt text
*.jade text
*.latte text
*.mustache text
*.njk text
*.phtml text
*.tmpl text
*.tpl text
*.twig text
## LINTERS
.csslintrc text
.eslintrc text
.htmlhintrc text
.jscsrc text
.jshintrc text
.jshintignore text
.stylelintrc text
# Linters
.csslintrc text
.eslintrc text
.htmlhintrc text
.jscsrc text
.jshintrc text
.jshintignore text
.stylelintrc text
## CONFIGS
*.bowerrc text
*.cnf text
*.conf text
*.config text
.babelrc text
.browserslistrc text
.editorconfig text
.env text
.gitattributes text
.gitconfig text
.htaccess text
*.lock text
*.npmignore text
*.yaml text
*.yml text
browserslist text
Makefile text
makefile text
# Configs
*.bowerrc text
*.cnf text
*.conf text
*.config text
.babelrc text
.browserslistrc text
.editorconfig text
.env text
.gitattributes text
.gitconfig text
.htaccess text
*.lock text
*.npmignore text
*.yaml text
*.yml text
browserslist text
Makefile text
makefile text
## HEROKU
Procfile text
.slugignore text
# Heroku
Procfile text
.slugignore text
## GRAPHICS
*.ai binary
*.bmp binary
*.eps binary
*.gif binary
*.ico binary
*.jng binary
*.jp2 binary
*.jpg binary
*.jpeg binary
*.jpx binary
*.jxr binary
*.pdf binary
*.png binary
*.psb binary
*.psd binary
# Graphics
*.ai binary
*.bmp binary
*.eps binary
*.gif binary
*.ico binary
*.jng binary
*.jp2 binary
*.jpg binary
*.jpeg binary
*.jpx binary
*.jxr binary
*.pdf binary
*.png binary
*.psb binary
*.psd binary
# SVG treated as an asset (binary) by default.
*.svg text
*.svg text
# If you want to treat it as text,
# use the following line instead.
# *.svg binary
*.svgz binary
*.tif binary
*.tiff binary
*.wbmp binary
*.webp binary
*.svgz binary
*.tif binary
*.tiff binary
*.wbmp binary
*.webp binary
## AUDIO
*.kar binary
*.m4a binary
*.mid binary
*.midi binary
*.mp3 binary
*.ogg binary
*.ra binary
# Audio
*.kar binary
*.m4a binary
*.mid binary
*.midi binary
*.mp3 binary
*.ogg binary
*.ra binary
## VIDEO
*.3gpp binary
*.3gp binary
*.as binary
*.asf binary
*.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
# Video
*.3gpp binary
*.3gp binary
*.as binary
*.asf binary
*.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
*.7z binary
*.gz binary
*.jar binary
*.rar binary
*.tar binary
*.zip binary
# Archives
*.7z binary
*.gz binary
*.jar binary
*.rar binary
*.tar binary
*.zip binary
## FONTS
*.ttf binary
*.eot binary
*.otf binary
*.woff binary
*.woff2 binary
# Fonts
*.ttf binary
*.eot binary
*.otf binary
*.woff binary
*.woff2 binary
## EXECUTABLES
*.exe binary
*.pyc binary
# Executables
*.exe binary
*.pyc binary