gitattributes: dont treat non-text files as text
authorVignesh Rajendran <vignesh.rajendran@in.bosch.com>
Fri, 8 Nov 2019 15:32:55 +0000 (16:32 +0100)
committerTom Rini <trini@konsulko.com>
Mon, 11 Nov 2019 19:20:35 +0000 (14:20 -0500)
With recent update in u-boot gitattributes all files are treated as regular
text files. This creates problems with special files and repo always
shows uncommitted files like below.

Your branch is up-to-date with 'origin/master'.
Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git checkout -- <file>..." to discard changes in working directory)

modified:   tools/logos/compulab.bmp
modified:   tools/logos/denx-comp.bmp
modified:   tools/logos/toradex.bmp

To fix above problem special files bmp/ttf files are treated as binary
files in the gitattributes.

Signed-off-by: Vignesh Rajendran <vignesh.rajendran@in.bosch.com>
Signed-off-by: Veeraiyan Chidambaram <veeraiyan.chidambaram@in.bosch.com>
.gitattributes

index 8560b794c0a7cb3525adfe30005f3da8d9b858e5..899473ab0fbbd38f4f5cc0690042da3c1c619ac5 100644 (file)
@@ -1,2 +1,5 @@
 # Declare files that always have LF line endings on checkout
 * text eol=lf
 # Declare files that always have LF line endings on checkout
 * text eol=lf
+# Denote all files that are truly binary and should not be modified
+*.bmp binary
+*.ttf binary