]> granicus.if.org Git - gc/commitdiff
Add .gitattributes to ensure normalized text line encodings in repo
authorIvan Maidanski <ivmai@mail.ru>
Thu, 22 Dec 2011 08:16:41 +0000 (12:16 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Thu, 22 Dec 2011 08:21:50 +0000 (12:21 +0400)
.gitattributes [new file with mode: 0644]

diff --git a/.gitattributes b/.gitattributes
new file mode 100644 (file)
index 0000000..4f3ff11
--- /dev/null
@@ -0,0 +1,11 @@
+# Git repo attributes.
+
+# Ensure all text files have normalized (LF) line endings in the repository.
+* text=auto
+
+# These files should use CR/LF line ending:
+/BCC_MAKEFILE -text
+/digimars.mak -text
+
+# Note: "core.eol" configuration variable controls which line endings to use
+# for the normalized files in the working directory (the default is native).