浏览代码

Create a gitattributes file

When creating an archive, the GitHub repository and VCS-specific files
are now ignored.
The diff "hunk header" is customized for C/C++ [1].

[1]: https://git-scm.com/docs/gitattributes#_defining_a_custom_hunk_header
Antonin Décimo 5 年之前
父节点
当前提交
88d2c52d10
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      .gitattributes

+ 5 - 0
.gitattributes

@@ -0,0 +1,5 @@
+.git* export-ignore
+.hg* export-ignore
+*.c diff=cpp
+*.cpp diff=cpp
+*.h diff=cpp