如何在Windows中的mercurial.ini中指定CRLF编码/解码选项?
文档提供以下选项:
[extensions]
win32text =
[decode]
** = cleverdecode:
[encode]
** = cleverencode:
表示所有文件,
[extensions]
win32text =
[decode]
**.txt = cleverdecode:
[encode]
**.txt= cleverencode:
用于一种文件(此处为.txt文件)。
我需要指定* .xml,* .java等!
答案 0 :(得分:4)
在[decode]
和[encode]
部分添加更多行:
[extensions]
win32text =
[decode]
**.txt = cleverdecode:
**.java = cleverdecode:
**.xml = cleverdecode:
[encode]
**.txt = cleverencode:
**.java = cleverencode:
**.xml = cleverencode:
顺便说一句,双星匹配任何路径并跨越目录分隔符。有关Mercurial中所谓的“globbing”选项的更多信息,请参阅hg help patterns
。