What is the Unified Diff format and how does it work?
The Unified Diff format is the industry-standard method for representing changes between two text files. It is the default output format for Git (`git diff`) and the GNU `diff` utility. Instead of showing the entire text of both files side-by-side, a unified diff outputs a single, consolidated block of text. It uses a three-line context window around each change to help developers understand where the modification occurred. Lines starting with a minus sign (`-`) in red represent text that was deleted from the original file, while lines starting with a plus sign (`+`) in green represent text that was added to the new file. Unchanged lines have no prefix and serve as contextual anchors. Our online diff checker visualizes this unified format, making it incredibly easy to review pull requests, audit code, or track document revisions.