[KongchangAI]
Concept统一差异格式 / diff -u

unified diff

A textual difference format generated by diff -u or git diff, using - for deleted lines, + for added lines, and a space for unchanged context lines, accompanied by @@ location markers. Because of its high signal-to-noise ratio, it is commonly used in code review and version comparison.

Timeline (last 90 days)

Oct 16

The unified diff format compresses the model input to one-thousandth of the original text or even less through its high signal-to-noise ratio, and is the technical prerequisite for the design of "Python finds differences, the model makes judgments" to hold.

Unverified50%
Oct 16

Unified diff places deleted lines and added lines in the same column, while side-by-side diff places the old version and the new version in left and right columns, and the two differ in the line numbers, line heights, and scroll offsets corresponding to the same change, so they cannot share the same scroll position.

Unverified50%
Oct 15

In the benchmark tests, the model could generate semantically correct fixes, but the line counts in the unified diff headers were wrong, causing the patch tool to refuse to apply them.

Unverified50%
Oct 15

slopsieve parses the unified diff format, which consists of a series of hunks, each headed by @@ -old start line,old line count +new start line,new line count @@.

Unverified50%
Oct 11

A unified diff is produced by the diff -u command, with each file block annotated with the original and target paths using --- a/ and +++ b/.

Unverified50%

All Facts (5)

Source Articles