Add .gitattributes, setting “text eol=lf” or “binary” for all files

This should prevent accidental "\r\n" line endings from being introduced
again, as happened in 359fc4a1336d, fixed by 31470459b624.

Also includes:

Update mini_chromium to 0512d42698bfb47f2016ac627177c22d22b983d4

0512d42698bf Add .gitattributes, setting “text eol=lf” for all files

Change-Id: Id84c014914fec66632006ed364e2b14b4f1c175c
Reviewed-on: https://chromium-review.googlesource.com/c/crashpad/crashpad/+/1953807
Commit-Queue: Mark Mentovai <mark@chromium.org>
Reviewed-by: Robert Sesek <rsesek@chromium.org>
This commit is contained in:
Mark Mentovai 2019-12-06 13:31:55 -05:00 committed by Commit Bot
parent 31470459b6
commit cba3dabf24
5 changed files with 112 additions and 1 deletions

59
.gitattributes vendored Normal file
View File

@ -0,0 +1,59 @@
# Copyright 2019 The Crashpad Authors. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
*.S text eol=lf
*.asm text eol=lf
*.c text eol=lf
*.cc text eol=lf
*.cmx text eol=lf
*.css text eol=lf
*.defs text eol=lf
*.doxy text eol=lf
*.gn text eol=lf
*.gni text eol=lf
*.go text eol=lf
*.gyp text eol=lf
*.gypi text eol=lf
*.h text eol=lf
*.m text eol=lf
*.md text eol=lf
*.mm text eol=lf
*.pem text eol=lf
*.plist text eol=lf
*.proctype text eol=lf
*.py text eol=lf
*.sh text eol=lf
*.sym text eol=lf
*.txt text eol=lf
*.yaml text eol=lf
.clang-format text eol=lf
.gitattributes text eol=lf
.gitignore text eol=lf
.vpython text eol=lf
/AUTHORS text eol=lf
/CONTRIBUTORS text eol=lf
/LICENSE text eol=lf
/codereview.settings text eol=lf
APPLE_LICENSE text eol=lf
COPYING.LIB text eol=lf
DEPS text eol=lf
README text eol=lf
README.crashpad text eol=lf
*.dat binary
*.dll binary
*.ico binary
*.obj binary
*.png binary
*.so binary

14
.gitignore vendored
View File

@ -1,3 +1,17 @@
# Copyright 2014 The Crashpad Authors. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
*.Makefile
*.ninja
*.pyc

2
DEPS
View File

@ -33,7 +33,7 @@ deps = {
'7bde79cc274d06451bf65ae82c012a5d3e476b5a',
'crashpad/third_party/mini_chromium/mini_chromium':
Var('chromium_git') + '/chromium/mini_chromium@' +
'cdab1e6263ec7f3f61763efc1dac863f8dc07c80',
'0512d42698bfb47f2016ac627177c22d22b983d4',
'crashpad/third_party/libfuzzer/src':
Var('chromium_git') + '/chromium/llvm-project/compiler-rt/lib/fuzzer.git@' +
'fda403cf93ecb8792cb1d061564d89a6553ca020',

21
handler/win/.gitattributes vendored Normal file
View File

@ -0,0 +1,21 @@
# Copyright 2019 The Crashpad Authors. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# This should be a .cc file, which would allow its attributes to be controlled
# by the *.cc pattern in the root .gitattributes file, but its named with a
# .cpp extension instead. This file needs to be built with VC++6, a vintage 1998
# compiler, which might not understand .cc to mean C++. Rather than setting
# attributes globally for .cpp files, which are undesirable (.cc should be used
# in its place), provide a file-specific mapping here.
/z7_test.cpp text eol=lf

View File

@ -0,0 +1,17 @@
# Copyright 2019 The Crashpad Authors. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ELF executables normally dont have any extension, so theres no pattern to
# match in the root .gitattributes file.
/ret42 binary