如何让Unison输出比较副本但不同步的结果

发布于 2025-02-12 09:51:17 字数 171 浏览 2 评论 0原文

我对文件同步器,一致有一个疑问。有没有办法让一致比较两个副本并输出差异(标准输出或文件),但不能执行任何更新?

我可以通过仅针对交互式会话中的每种更新可能性击中/(跳过)来做到这一点,但是我有一千多行的可能性,并且失去了持有/键很长一段时间。有没有办法自动跳过?

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 技术交流群。

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

发布评论

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

评论(1

我做我的改变 2025-02-19 09:51:17

我不知道这是否是对您的实用解决方案,但是如果您在文本模式(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-case L at the prompt (when it's ready to reconcile the changes). Perhaps you could automate this using expect?

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