Skip to content

Commit

Permalink
style: reorder and align rules
Browse files Browse the repository at this point in the history
  • Loading branch information
lmgeorge committed Apr 30, 2024
1 parent f86e558 commit a1f1f63
Showing 1 changed file with 39 additions and 33 deletions.
72 changes: 39 additions & 33 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
# If the default rule changes, these macros must be updated as well.

# OVERRIDES
## See builtin binary definition here: https://www.git-scm.com/docs/gitattributes#_defining_macro_attributes
[attr]binary -text -diff -merge !eol

# CUSTOM
Expand All @@ -49,6 +50,7 @@
[attr]markdown diff=markdown
[attr]python diff=python
[attr]ruby diff=ruby
[attr]scheme diff=scheme

### Do not generate a diff, instead print a "Binary files differ" message
### Useful for autogenerated text files that may produce large, noisy diffs
Expand All @@ -68,65 +70,69 @@
# DEFAULT RULE
# --------------------------------------------------------------------
# Auto detect text files and perform LF normalization
* text eol=lf
* text eol=lf

# --------------------------------------------------------------------
# PATTERN RULES
# --------------------------------------------------------------------
# Common settings that generally should always be used with your language specific settings

# Text files where line endings should be preserved
*.patch -text
*.patch -text

# Assets
## Graphics
*.gif binary
*.ico binary
*.jpeg binary
*.jpg binary
*.png binary
*.tif binary
*.tiff binary
*.webp binary
*.svgz binary
*.gif binary
*.ico binary
*.jpeg binary
*.jpg binary
*.png binary
*.tif binary
*.tiff binary
*.webp binary
*.svgz binary

## Fonts
*.ttf binary
*.eot binary
*.otf binary
*.woff binary
*.woff2 binary
*.ttf binary
*.eot binary
*.otf binary
*.woff binary
*.woff2 binary


# These are explicitly windows files and should use crlf
*.bat eol=crlf
*.cmd text eol=crlf
*.ps1 text eol=crlf
*.bat eol=crlf
*.cmd text eol=crlf
*.ps1 text eol=crlf


# Uncommon (to Git) sourcecode files
*.scss text css
*.scss text css


# Fix syntax highlighting on GitHub to allow comments
tsconfig.json jsonc
tsconfig.json jsonc

# Lock files (usually for managing project dependencies)
*.lock lockfile

# Auto-generated and minified files
*.map autogen
*.min.js autogen

# Generated and/or minified files
*.map autogen
*.lock lockfile

# --------------------------------------------------------------------
# PROJECT-SPEFICIC RULES
# --------------------------------------------------------------------#
# Generated files
*.min.js autogen
knapsack_rspec_report.json lockfile
package-lock.json lockfile
pnpm-lock.yaml lockfile

# Executables and runtimes
*.wasm binary
## Lock files
knapsack_rspec_report.json lockfile
package-lock.json lockfile
pnpm-lock.yaml lockfile

## Executables and runtimes
*.wasm binary

# Data files
*_model-shard? binary
## Data files
*_model-shard? binary

0 comments on commit a1f1f63

Please sign in to comment.