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 π
π LICENSE AND COPYRIGHT π
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
- ubuntu stonking: libgit-raw-perl 0.90+ds-3build3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms