PYTHON3-UNIDIFF(1)

πŸ’… PYTHON3-UNIDIFF β€” the manual page, but make it cute

okay bestie, welcome to the python3-unidiff manual page (section 1, User Commands, in case you were wondering which shelf it lives on) πŸŽ€


✨ NAME ✨

python3-unidiff β€” a unified diff Python parsing/metadata extraction library πŸ¦‹

like. it parses diffs. it extracts metadata. it's a library, it's a tool, it's giving both πŸ’…


🌸 SYNOPSIS 🌸

python3-unidiff [options]

that's it. that's the whole vibe. options go in, magic comes out ✨


🫢 DESCRIPTION 🫢

so python3-unidiff is a tool for processing unified diff data. unified diffs!! the ---/+++/@@ situation, you know the one πŸ‘‘

it can read diff data from a file or from standard input, and then β€” only if you want it to β€” optionally output the diff to stdout. no cap.

basically: diff data goes in, processed diff data comes out. main character energy fr fr πŸ’–


πŸ‘‘ OPTIONS πŸ‘‘

  • -h, --help β€” show this help message and exit. the classic. the icon. the "bestie I'm lost" button πŸ₯Ί
  • --show-diff β€” output the diff to stdout. you want the diff shown? she'll show it πŸ’…
  • -f, --file _DIFF_FILE_ β€” read diff data from the specified file. and if you don't specify one? she reads diff data from stdin instead. no file, no problem, she's flexible like that 🌈

⭐ EXAMPLES ⭐

here's where it gets fun, get in bestie we're going shopping πŸ›οΈ

git diff | python3-unidiff

run the tool with diff data from git diff. pipe it straight in, chef's kiss πŸ”₯

hg diff | python3-unidiff --show-diff

run the tool with diff data from hg diff and output the diff to stdout. mercurial girlies, this one's for you 🧚

python3-unidiff -f patch.diff

run the tool with diff data from the specified file patch.diff. file-based, very demure, very mindful πŸŽ€


πŸ’œ AUTHOR πŸ’œ

Yogeswaran Umasankar <kd8mbd@gmail.com>

shoutout to the author, we love a legend πŸ‘‘


😭 REPORTING BUGS 😭

found a bug? report bugs to the Debian Bug Tracking System at https://bugs.debian.org/. be nice, be specific, include the details β€” the devs deserve it 🫢


ngl bestie, if a diff is malformed or something's undefined, just remember: the manual only promises what the manual promises. don't go inventing behaviour, that's not the vibe πŸ’€

and that's the whole page!! slay ✨ this was python3-unidiff version 1.0, dated June 2024 β€” thanks for reading, mwah, go parse some diffs πŸ’–πŸ’…πŸŒΈ

πŸ“¦ where this page comes from