gpt4 book ai didi

mercurial - 不能对 hg 的大文件扩展使用过滤器模式

转载 作者:行者123 更新时间:2023-12-01 11:36:57 26 4
gpt4 key购买 nike

我的hgrc配置文件如下:

[extensions] largefiles =

[largefiles] patterns = *.jpg *.png *.bmp *.gif *.mp3 *.a *.jar *.psd *.ai *.unity *.ttf *.zip *.rar

我通过创建文件 a.jpg 进行测试,hg 添加 --large a.jpg,文件已在 .hglf 中创建正确。我创建了 b.jpg,hg add b.jpg,文件也已在 .hglf 中正确创建。

If I do not hg add --large a.jpg first, this will be failed for some reason.

接下来,我创建了子目录,在那里创建了 c.jpg 文件,hg add c.jpg,.hglf 中没有创建任何内容。 这使得过滤器模式在子目录中后不再起作用。我应该怎么做才能为 repo 中的所有文件“hg add *”并正确过滤哪个是文本文件,哪个是二进制文件作为 .hgrc 配置文件中的配置。

最佳答案

我想,你必须重新阅读hg help patterns

  *.c            any name ending in ".c" in the current directory
**.c any name ending in ".c" in any subdirectory of the
current directory including itself.

并修复你的模式

关于mercurial - 不能对 hg 的大文件扩展使用过滤器模式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25926484/

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