gpt4 book ai didi

tortoisesvn - 如何在 TortoiseSVN 的两个修订版之间创建补丁文件?

转载 作者:行者123 更新时间:2023-12-04 05:09:19 27 4
gpt4 key购买 nike

我正在使用 TortoiseSVN 1.7 并想在两个修订版之间创建补丁文件。

我搜索过,但这些线程 How do I create a patch from diff between revisions using TortoiseSVN? Creating a patch between two revisions对我不起作用,因为 Show changes as unified diff 生成非常简单的文件(不是补丁文件)。有点像

Index: myfile.txt

===================================================================

我读入了Viewing Differences那个

If you want to see the changes made to all files in a particular revision in one view, you can use Unified-Diff output (GNU patch format). This shows only the differences with a few lines of context. It is harder to read than a visual file compare, but will show all the changes together. From the Revision Log dialog select the revision of interest, then select Show Differences as Unified-Diff from the context menu.

我想创建一个包含有用差异信息(如菜单上下文 TortoiseSVN -> 创建补丁 ...)的补丁文件(或根据修改后的文件创建多个补丁文件)

最佳答案

如果您使用“将更改显示为统一差异”命令,则 TortoiseSVN 会在单个文件中显示所选修订版的所有更改。

现在只需使用“文件/另存为”命令将更改保存到“.patch”或“.diff”文件,这样您就有了补丁文件。

关于tortoisesvn - 如何在 TortoiseSVN 的两个修订版之间创建补丁文件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15080457/

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