如何让Unison输出比较副本但不同步的结果
我对文件同步器,一致有一个疑问。有没有办法让一致比较两个副本并输出差异(标准输出或文件),但不能执行任何更新?
我可以通过仅针对交互式会话中的每种更新可能性击中/
(跳过)来做到这一点,但是我有一千多行的可能性,并且失去了持有/键很长一段时间。有没有办法自动跳过?
I have a question about the file synchronizer, unison. Is there a way to let unison compare two replicas and output the difference (to the standard output or a file) but not execute any updates?
I could do this by just hitting /
(skip) for each update possibility in the interactive session, but I have more than a thousand lines of possibilities and lost patience to hold the /
key for a long time. Is there a way to skip all automatically?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不知道这是否是对您的实用解决方案,但是如果您在文本模式(
unison -ui Text
)中运行,则可以获取所有内容,以通过键入一个来传输的所有内容上案例l
在提示下(准备好更改时)。也许您可以使用期望对此进行自动化?I don't know if this is a practical solution for you, but if you run Unison in text mode (
unison -ui text
), you can get an overview of all content to be transmitted by typing an upper-caseL
at the prompt (when it's ready to reconcile the changes). Perhaps you could automate this using expect?