VulCode

Text diff

Paste two versions, see the changed lines and get a unified diff patch.

Category
For developers
Price
free

The tool starts in your browser.

Everything is calculated in your browser. Nothing you type is sent to our server.

How to use it in three steps

The tool as a schematic with this page's example. Each step's number stands where you take it: in the fields, at the result or outside the tool.

Text diff
What you enter
Two versions of server.properties: a different max-players and motd, a new white-list line
  1. Paste the old version.

  2. Paste the new version.

What you get
--- a/server.properties +++ b/server.properties @@ -1,4 +1,5 @@ server-port=25565 -max-players=20 -motd=Test server +max-players=50 +motd=VulCode server online-mode=true +white-list=true
  1. See the changed lines and copy the patch.

Six comparisons and the patch the tool gives

A unified diff patch with three lines of context, ready for patch or git apply. Different line ends from Windows and Linux do not count as a change.

Before and afterExpectedWhat the tool returnsResult
Before and aftermax-players 20 to 50, a new motd, a new linethe example from the tool's description
ExpectedTwo lines changed, one added, in one block
What the tool returns--- a/server.properties +++ b/server.properties @@ -1,4 +1,5 @@ server-port=25565 -max-players=20 -motd=Test server +max-players=50 +motd=VulCode server online-mode=true +white-list=true
As expected
Before and afterthe same text twiceno changes
ExpectedAn empty patch, no differences
What the tool returnsAn empty patch, no differences
As expected
Before and aftera, b with no final line break, then with oneno line break at the end of the file
ExpectedThe \ No newline at end of file marker
What the tool returns--- a/server.properties +++ b/server.properties @@ -1,2 +1,2 @@ a -b \ No newline at end of file +b
As expected
Before and afterWindows and Linux line endsCRLF, LF
ExpectedAn empty patch, no differences
What the tool returnsAn empty patch, no differences
As expected
Before and afterport = 1, then with double spacesignoring whitespace
ExpectedAn empty patch, no differences
What the tool returnsAn empty patch, no differences
As expected
Before and afterMotd=A and motd=aignoring case
ExpectedAn empty patch, no differences
What the tool returnsAn empty patch, no differences
As expected

6 of 6 cases as expected

Questions

Related tools

The tool does one job. If the same thing should happen automatically in your bot, server or system, we build it.

Missing a tool you need?

Tell us what you want to calculate or generate. We will tell you whether a tool is enough or an integration in your system fits better.