gpt4 book ai didi

git - 我可以让 git-svn 处理 svn :eol-style?

转载 作者:IT王子 更新时间:2023-10-29 01:25:39 27 4
gpt4 key购买 nike

许多 svn 存储库要求新文件具有 svn:eol-style 属性。有什么方法可以确保 git-svn 发生这种情况吗?

最佳答案

您可以尝试在颠覆配置中设置自动属性 ​​([ 1 ][ 2 ])。它将确保在新文件的添加操作期间正确设置 svn:eol-style。

AFAIU git-svn 只是在内部工作中使用 svn,它应该加载 subversion 配置,并为新文件设置 auto-props。

好的,我测试过,它有效。

示例.subversion/config:

[miscellany]
enable-auto-props = yes

[auto-props]
*.cpp = svn:keywords=Id Revision;svn:eol-style=native
*.cs = svn:keywords=Id Revision;svn:eol-style=native

关于git - 我可以让 git-svn 处理 svn :eol-style?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2127429/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com