bazaar:我不想提交对文件权限的更改

发布于 2024-11-30 13:59:28 字数 187 浏览 3 评论 0原文

我想提交我所做的一些更改,但不知何故,在我的 Cygwin 系统上,bzr diff 显示每个文件都打开了可执行权限(“+x”)。如何提交除任何文件权限更改之外的所有内容?

就我而言,更简单的方法(我将要尝试)是全局更改所有文件以失去可执行权限。但是,我仍然想要一个关于如何选择性地不提交文件权限更改的问题的一般答案。

I am wanting to commit some changes I have made, but somehow on my Cygwin system, bzr diff shows that every single file had the executable permission switched on ("+x"). How can I commit everything except any file permission changes?

In my case, the easier method (which I'm about to try) is to globally change all files to lose executable permission. However, I still would like a general answer to the problem of how to selectively not commit file permission changes.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

独留℉清风醉 2024-12-07 13:59:28

您应该能够通过在文件上运行“bzr revert”将文件更改为不再可执行。或者,您可以运行“chmod -R aX”之类的命令。从所有文件中删除可执行位。

Bazaar 目前无法仅提交文件内容更改而不提交元数据更改。

You should be able to change the files to no longer be executable by running "bzr revert" on them. Alternatively, you could just run something like "chmod -R a-X ." to remove the executable bit from all files.

There is no way in Bazaar to only commit the content changes of a file and not the metadata changes at the moment.

夜巴黎 2024-12-07 13:59:28

在全球范围内进行更改可能是您最好的选择。在Linux下挂载FAT32分区(例如USB密钥)时也是一个问题。
这里有一个错误。我得到了有点半途修复,这样它就可以自动检测到,但 dirstate 有点难以使用,然后我就没有时间了。

Changing it globally is probably your best bet. It is also a problem when mounting fat32 partitions (eg. usb keys) under linux.
There is a bug for this. I got sort of halfway fixing it so that it will be auto detected, but dirstate was a bit difficult to work with and then I ran out of time.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文