Git::Raw::Patch(3pm)

πŸ’– Git::Raw::Patch β€” the vibe

okay so bestie, welcome to Git::Raw::Patch(3pm), a little Perl module that's part of the Git::Raw fam and is literally the patch class. yes, that patch. the one holding your diffs. she's giving main character energy and we're obsessed πŸ’…


✨ NAME ✨

Git::Raw::Patch β€” Git patch class πŸŽ€

🌸 VERSION 🌸

version 0.90 ⭐

πŸ¦‹ DESCRIPTION πŸ¦‹

A Git::Raw::Patch represents all the text diffs for a delta. that's it, that's the whole job, and she does it flawlessly 🫢

⚠️ WARNING: The API of this module is unstable and may change without warning (any change will be appropriately documented in the changelog). so like… don't get too attached to the vibes, okay? they might shift. but don't worry, they'll tell you in the changelog fr fr 😭

πŸ’… METHODS πŸ’…

🌈 buffer( )

Get the content of a patch as a single diff text. one big blob of diff, handed to you. iconic ✨

🌈 hunk_count( )

Get the number of hunks in the patch. just the count. a little number. a little guy. counting the hunks for you πŸ’–

🌈 hunks( [$index] )

Returns a list of Git::Raw::Diff::Hunk objects. If $index is specified only the hunk at the specified index will be returned.

so like, ask for all of them, or be picky and ask for one by index. both valid, both slay πŸ‘‘

🌈 line_stats( )

Get line counts of each type in the patch. Returns a hash with entries "context", "additions" and "deletions".

three little keys, three little numbers, a whole lot of insight πŸ“

🌈 delta( )

Get the delta associated with the patch. Returns a Git::Raw::Diff::Delta object. the patch's little companion, yk? 🧚


πŸ‘‘ AUTHOR πŸ‘‘

  • Alessandro Ghedini <alexbio@cpan.org>
  • Jacques Germishuys <jacquesg@cpan.org>

two legends. we stan πŸ’œ

Copyright 2014 Alessandro Ghedini.

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.


okay that's the whole page, bestie!! this one was generated by perl v5.42.3 on 2026-08-19, and it's literally page Git::Raw::Patch(3pm) β€” go forth and diff responsibly πŸ¦‹πŸ’–βœ¨

πŸ“¦ where this page comes from