mirror of
https://github.com/wmjordan/PDFPatcher.git
synced 2026-10-17 04:41:14 +08:00
fb7a660999
在 .gitattributes 中定义项目中各类文件为文本文件还是二进制文件, 以免当文本文件过大时,某些工具会误认为为二进制文件,不能展示 差异比较。并且因平台和不同编辑器的差异可能会意外修改换行,被 Git 感知从而引入无必要的格式差异。 目前除了 C/C++ 和 md 文件未定义,其他文件均定义了文件类型 (文本/二进制) 以及换行格式。 C/C++ 文件目前存在两种不同换行格式,原始为 LF 换行,后面使用编辑器 编辑后转变了部分文件的换行。后续进行统一为 LF 后,再继续完善此文件。
79 lines
2.8 KiB
Plaintext
79 lines
2.8 KiB
Plaintext
###############################################################################
|
|
# Set default behavior to automatically normalize line endings.
|
|
###############################################################################
|
|
* text=auto
|
|
|
|
# Make sure that these files always have CRLF line endings in checkout
|
|
*.config text eol=crlf
|
|
*.cs text eol=crlf
|
|
*.csproj text eol=crlf
|
|
*.html text eol=crlf
|
|
*.js text eol=crlf
|
|
*.manifest text eol=crlf
|
|
*.resx text eol=crlf
|
|
*.sln text eol=crlf
|
|
*.targets text eol=crlf
|
|
*.txt text eol=crlf
|
|
*.vcxproj text eol=crlf
|
|
*.vcxproj.filters text eol=crlf
|
|
*.xml text eol=crlf
|
|
*.xsd text eol=crlf
|
|
|
|
# Never perform LF normalization on these files
|
|
*.chw binary
|
|
*.dll binary
|
|
*.docx binary
|
|
*.exe binary
|
|
*.ico binary
|
|
*.png binary
|
|
|
|
###############################################################################
|
|
# Set default behavior for command prompt diff.
|
|
#
|
|
# This is need for earlier builds of msysgit that does not have it on by
|
|
# default for csharp files.
|
|
# Note: This is only used by command line
|
|
###############################################################################
|
|
#*.cs diff=csharp
|
|
|
|
###############################################################################
|
|
# Set the merge driver for project and solution files
|
|
#
|
|
# Merging from the command prompt will add diff markers to the files if there
|
|
# are conflicts (Merging from VS is not affected by the settings below, in VS
|
|
# the diff markers are never inserted). Diff markers may cause the following
|
|
# file extensions to fail to load in VS. An alternative would be to treat
|
|
# these files as binary and thus will always conflict and require user
|
|
# intervention with every merge. To do so, just uncomment the entries below
|
|
###############################################################################
|
|
#*.sln merge=binary
|
|
#*.csproj merge=binary
|
|
#*.vbproj merge=binary
|
|
#*.vcxproj merge=binary
|
|
#*.vcproj merge=binary
|
|
#*.dbproj merge=binary
|
|
#*.fsproj merge=binary
|
|
#*.lsproj merge=binary
|
|
#*.wixproj merge=binary
|
|
#*.modelproj merge=binary
|
|
#*.sqlproj merge=binary
|
|
#*.wwaproj merge=binary
|
|
|
|
###############################################################################
|
|
# diff behavior for common document formats
|
|
#
|
|
# Convert binary document formats to text before diffing them. This feature
|
|
# is only available from the command line. Turn it on by uncommenting the
|
|
# entries below.
|
|
###############################################################################
|
|
#*.doc diff=astextplain
|
|
#*.DOC diff=astextplain
|
|
#*.docx diff=astextplain
|
|
#*.DOCX diff=astextplain
|
|
#*.dot diff=astextplain
|
|
#*.DOT diff=astextplain
|
|
#*.pdf diff=astextplain
|
|
#*.PDF diff=astextplain
|
|
#*.rtf diff=astextplain
|
|
#*.RTF diff=astextplain
|