我可以打补丁吗?

时间:2018-11-19 10:37:40

标签: diff patch

在我们的CI中,我们正在修补文件,当我们在要修补的文件中进行更改时出现问题,我可以将提交更改应用于修补文件吗?

示例:

text.txt

A
B
C
D

patch.patch

+++ b/text2.txt
@@ -1,4 +1,4 @@
 A
 B
-C
+X
 D

new.txt:

Y
Y
B
C
D

diff text.txt new.txt> text_to_new.diff

diff --git a/text.txt b/new.txt
index 8422d40..4780582 100644
--- a/text.txt
+++ b/new.txt
@@ -1,4 +1,5 @@
-A
+Y
+Y
 B
 C
 D

我可以使用text_to_new.diff更新patch.patch吗?

0 个答案:

没有答案
相关问题