carta
python3-unidiff(1)

python3-unidiff1

Unified diff python parsing/metadata extraction library

Usage

python3-unidiff [options]

Overview

python3-unidiff is a tool for processing unified diff data. It can read diff data from a file or from standard input and optionally output the diff to stdout.

Options

-h, --help

Show this help message and exit.

--show-diff

Output the diff to stdout.

-f, --file DIFF_FILE

Read diff data from the specified file. If not specified, read diff data from stdin.

Examples

git diff | python3-unidiff

Run the tool with diff data from git diff.

hg diff | python3-unidiff --show-diff

Run the tool with diff data from hg diff and output the diff to stdout.

python3-unidiff -f patch.diff

Run the tool with diff data from the specified file patch.diff.

Author

Yogeswaran Umasankar <[email protected]>

Reporting bugs

Report bugs to the Debian Bug Tracking System at https://bugs.debian.org/.

From python3-unidiff 0.7.5-2 in Debian 13 (Trixie). Parsed by carta from the page's man source.