aboutsummaryrefslogtreecommitdiffstats
path: root/.gitattributes
diff options
context:
space:
mode:
authorFawzi Mohamed <[email protected]>2021-11-03 15:39:00 +0100
committerFawzi Mohamed <[email protected]>2021-11-04 13:35:48 +0100
commit26e520040051e7def3509f4ca9fc88c40949cf1c (patch)
treede830adf26df1a75250e2ebdf5952b11d56f0b6d /.gitattributes
parente89d85847b7d70e8e5e66979851f640b13bcf820 (diff)
qmlformat: improve testing of file based options
Add an option to run qmlformat from the original file to a copy, thus picking up automatically settings related to those options. This does not in place replacing, but does not need any special setup to run the test. Ensure that git preserves the old macos line endings (CR) in the reference file by renaming it to *_mac_cr.* and change .gitattributes accordingly. Change-Id: Ibd9685613fc737146d67abcae19c67300343aa88 Reviewed-by: Fabian Kosmale <[email protected]>
Diffstat (limited to '.gitattributes')
-rw-r--r--.gitattributes1
1 files changed, 1 insertions, 0 deletions
diff --git a/.gitattributes b/.gitattributes
index 7be61e4c7e..38122d1b6f 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -1,4 +1,5 @@
*_crlf.* eol=crlf
+*_mac_cr.* eol=cr
.tag export-subst
.gitignore export-ignore
.gitattributes export-ignore