gpt4 book ai didi

Mercurial 转换更改行尾?

转载 作者:行者123 更新时间:2023-12-04 02:23:43 25 4
gpt4 key购买 nike

我正在使用 Mercurial Convert 扩展从 PerForce 存储库导入数据。转换似乎工作正常,但所有 Windows 行结尾 (CRLF) 都被 unix 结尾 (LF) 替换。

有没有办法让这个扩展名留下行尾?

最佳答案

虽然转换本身可能会更改 eol 样式,但您仍然可以在新的 Hg 存储库中指定要在结帐时为某些类型的文件查看的 eol:
EolExtension .

When working with people on different operating systems, it can therefore be desirable to be able to checkout text files with the operating system native line ending representation.
This extension lets you specify how end of lines (EOLs) are converted between the repository representation and the working copy representation.

关于Mercurial 转换更改行尾?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5397845/

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