Skip to content

How to get the complete content comparison of two files through diff #418

@1506085843

Description

@1506085843

I now have a.txt and b.txt files, and the diff I got by comparing these two files through Java
diff:

--- test1.txt
+++ test2.txt
@@ -10,0 +10,2 @@
+insert1;
+insert2;
@@ -19,2 +21,3 @@
-window.upList = [];
-window.downList = [];
+break;

My example is as follows:
image

结果如下:
image

How can I combine diff with a.txt and b.txt to get a complete content comparison?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions