Ott*_*ows 8 c# git gitattributes
在一个.gitattributes文件中,我找到了以下行
*.cs text diff=csharp
Run Code Online (Sandbox Code Playgroud)
这是什么意思?
这意味着对于.cs(CSharp)文件,git将text diff=csharp用作merge/diff模式.
这允许git在合并时具有更高的成功率概率.
另请参阅gitattributes doc,其中说明:
Setting the text attribute on a path enables end-of-line normalization
and marks the path as a text file. End-of-line conversion takes place
without guessing the content type.
Run Code Online (Sandbox Code Playgroud)
和
There are a few built-in patterns to make this easier,
and tex is one of them, so you do not have to write the above
in your configuration file (you still need to enable this with the attribute mechanism,
via .gitattributes). The following built in patterns are available:
[...]
csharp suitable for source code in the C# language.
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1168 次 |
| 最近记录: |