Git::R...::Delta(3pm)

✨ NAME ✨

Git::Raw::Diff::Delta β€” bestie, it's the Git diff delta class πŸ’…

(yeah this is a Git::R...::Delta(3pm) situation, a user-contributed Perl doc, and we're getting into it)


πŸŽ€ VERSION πŸŽ€

version 0.90 β€” that's the one, no cap 🌸


πŸ¦‹ DESCRIPTION πŸ¦‹

A Git::Raw::Diff::Delta represents a delta in the diff between two entities. Like, one little "what changed here" between the before and the after. That's the whole vibe. 🫢

⚠️ WARNING: The API of this module is unstable and may change without warning (any change will be appropriately documented in the changelog). So like… love it, but don't marry it, okay? 😭

πŸ’– METHODS πŸ’–


🌈 status( )

Retrieve the status of the delta. Returns one of the following:

  • "unmodified" β€” No changes. literally nothing happened, we love a peaceful queen ✨
  • "added" β€” The entry does not exist in the old version. brand new, fresh out the box πŸŽ€
  • "deleted" β€” The entry does not exist in the new version. gone, and honestly not coming back πŸ’€
  • "modified" β€” The entry content changed between the old and new versions. the classic glow-up 🌸
  • "renamed" β€” The entry was renamed between the old and new versions. new name, same energy πŸ‘‘
  • "copied" β€” The entry was copied from another old entry. it's giving twin behavior πŸ¦‹
  • "ignored" β€” The entry is an ignored item in the working directory. we don't see her, she's not here πŸ™ˆ
  • "untracked" β€” The entry is an untracked item in the working directory. main character who hasn't been added to the group chat yet 😭
  • "type_change" β€” The type of the entry changed between the old and new versions. identity crisis but make it git πŸ”₯
  • "unreadable" β€” The entry is unreadable. can't read her, won't read her πŸ’…
  • "conflicted" β€” The entry represents a conflict. drama. actual drama. ⭐

πŸ’œ flags( )

Retrieve the flags associated with the delta. Returns an array reference with zero or more of the following:

  • "binary" β€” Files treated as binary data.
  • "valid_id" β€” "id" value is known correct. βœ…

🧚 similarity( )

Retrieve the similarity score between 0 and 100 between "old_file" and "new_file". So like, how much is she still herself after the change? πŸ‘‘


πŸ“ file_count( )

Retrieve the number of files in the delta. count 'em, bestie πŸ”’


⭐ old_file( )

The "old_file" represents the "from" side of the diff. Returns a Git::Raw::Diff::File object. the before πŸ’–


🌈 new_file( )

The "new_file" represents to "to" side of the diff. Returns a Git::Raw::Diff::File object. the after πŸ’«


🫢 AUTHOR 🫢

Alessandro Ghedini <alexbio@cpan.org>

Jacques Germishuys <jacquesg@cpan.org>

(icons, both of them, genuinely πŸ’…)


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, you ate it up πŸŽ€ and just so you know exactly what you're reading β€” this was perl v5.42.3, dated 2026-08-19, and it was the Git::R...::Delta(3pm) page from the User Contributed Perl Documentation. periodt. πŸ’–βœ¨

πŸ“¦ where this page comes from