1
0
mirror of https://github.com/gitattributes/gitattributes.git synced 2025-01-22 00:08:52 -05:00
Go to file
2021-11-20 16:17:17 +00:00
.github/workflows add pre-commit workflow 2020-11-08 14:22:14 -08:00
.gitattributes Add CRLF EOL for Window-specific file formats and add diffs (#129) 2021-03-23 18:02:16 +13:00
.gitignore Add F# and tweak C# (#128) 2021-03-10 19:41:29 +13:00
.pre-commit-config.yaml add pre-commit workflow 2020-11-08 14:22:14 -08:00
ActionScript.gitattributes Improved ActionScript gitattributes 2019-04-18 16:48:32 +12:00
Ada.gitattributes feat: Support *.adb and *.ads 2019-07-17 15:25:27 +12:00
Ballerina.gitattributes Proper sh line endings and added bash support 2019-04-21 13:32:14 +12:00
C++.gitattributes Update C++.gitattributes 2021-10-14 15:51:05 +02:00
Common.gitattributes Remove broken links 2021-08-07 12:17:32 -07:00
CSharp.gitattributes Add F# and tweak C# (#128) 2021-03-10 19:41:29 +13:00
Delphi.gitattributes Format gitattributes files 2019-04-20 12:35:18 +12:00
Drupal.gitattributes Remove extra spaces 2019-07-04 20:32:22 +12:00
Elixir.gitattributes Update Elixir.gitattributes 2020-11-18 23:40:10 +13:00
Flutter.gitattributes Flutter (#130) 2021-04-03 02:34:26 +13:00
Fortran.gitattributes feat: Support *.for 2019-07-17 15:21:18 +12:00
Fountain.gitattributes Format gitattributes files 2019-04-20 12:35:18 +12:00
FSharp.gitattributes Add F# and tweak C# (#128) 2021-03-10 19:41:29 +13:00
Go.gitattributes Add diff support for golang file 2019-03-09 15:22:19 +13:00
Java.gitattributes Add Kotlin, Groovy, Scala and Sass to Java (#144) 2021-09-08 12:23:46 +12:00
LICENSE.md Create LICENSE.md 2015-11-01 20:36:42 -08:00
Lua.gitattributes Merge branch 'master' into patch-7 2019-04-18 11:29:25 +12:00
Mathematica.gitattributes Add Mathematica (#113) 2020-05-19 16:10:47 +12:00
Matlab.gitattributes Added Matlab diff 2019-03-09 15:33:13 +13:00
ObjectiveC.gitattributes Format gitattributes files 2019-04-20 12:35:18 +12:00
Pascal.gitattributes feat: Support *.p 2019-07-17 15:23:10 +12:00
Perl.gitattributes Format gitattributes files 2019-04-20 12:35:18 +12:00
Python.gitattributes ENH: Add export-ignore to compiled python files 2021-06-10 15:04:56 +01:00
R.gitattributes Correct setting for .Rmd files 2021-11-20 16:17:17 +00:00
Rails.gitattributes Ruby diff 2019-04-19 19:00:18 +12:00
README.md Add script to check for missing .gitattributes rules (#146) 2021-10-10 13:22:01 +13:00
Rust.gitattributes Create Rust.gitattributes 2021-10-08 21:13:11 +02:00
Servoy.gitattributes Remove broken links 2021-08-07 12:17:32 -07:00
sql.gitattributes [sql] Fix eof 2021-06-13 11:42:17 -07:00
Swift.gitattributes chore: Add top comment 2019-07-06 13:26:08 +12:00
Unity.gitattributes apply pre-commit fixes 2020-11-08 14:23:30 -08:00
Vim.gitattributes Added Vim (#119) 2020-10-15 10:46:15 +13:00
VisualStudio.gitattributes Fix misspelling 2020-06-16 15:57:01 +12:00
Web.gitattributes Add embedded ruby template 2021-11-04 11:12:58 +01:00

A Collection of Useful .gitattributes Templates

Similarly to the .gitignore Templates, we're trying to build templates for .gitattributes.

Common.gitattributes contains general exclusions that may apply to any project. Consider including them if they are applicable to your project.

You can use this handy dandy generator to generate your gitattributes files on the fly based on files inside of this repository.

CI step

To check if all files have a corresponding rule in .gitattributes, this script can be used:

missing_attributes=$(git ls-files | git check-attr -a --stdin | grep "text: auto")
if [[ "$missing_attributes" ]]; then
  echo ".gitattributes rule missing for the following files:";
  echo "$missing_attributes";
else
  echo "All files have a corresponding rule in .gitattributes";
fi

Contributing

Please contribute by forking and sending a pull request.

Also please only modify one file per commit. This'll make merging easier for everyone.

For more information on gitattributes: gitattributes(5) and for Github-specific grammar: Linguist docs