bazaar:我不想提交对文件权限的更改
我想提交我所做的一些更改,但不知何故,在我的 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您应该能够通过在文件上运行“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.
在全球范围内进行更改可能是您最好的选择。在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.