Checkout windows 样式换行符

Checkout windows style line breaks

当 repo 有 unix 风格的换行符时,libgit2sharp 是否支持检查 windows 风格的换行符?

我似乎无法在任何地方找到记录。

Does libgit2sharp support checking out windows style line breaks when the repo has unix style line breaks?

是的。 LibGit2Sharp 将很乐意接受 core.crlf 配置设置和 Windows.

上的 .gitattributes 文件

仍有一些情况(core.crlf = true 在 *nix 平台上,处理 safe.crlf)尚不支持,但应尽快解决(cf. #961, libgit2/#3199 and libgit2/#2798)