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

πŸ’– NAME πŸ’–

ok so this is Git::Raw::Index::Entry β€” it's the Git index entry class, bestie. that's the whole vibe. πŸŽ€

it lives in the User Contributed Perl Documentation section of the manual, aka 3pm, iykyk.


✨ VERSION ✨

this is version 0.90, periodt. πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

so a Git::Raw::Index::Entry represents, like… an index entry inside a Git repository index. that's it, that's the job. one entry, one little row in the index. iconic behavior honestly. 🌸

⚠️ WARNING, and I need you to hear me on this one: the API of this module is unstable and may change without warning. any change will be appropriately documented in the changelog, but like β€” no warning, bestie. none. plan accordingly. 😭

🫢 METHODS 🫢

okay so here's the whole roster, no skips, every single one:

  • id( ) β€” grabs the id of the index entry and hands it back to you as a string. πŸ’–
  • is_conflict( ) β€” checks whether the entry has a non-zero stage entry. if yes: conflict. drama detected. πŸ’€
  • mode( ) β€” returns the mode of the index entry. important little detail: it comes back as a number, not a string. don't get got by that one. πŸ”₯
  • path( ) β€” returns the path of the index entry. where it lives. its little address. 🏠
  • size( ) β€” returns the size of the index entry. how big. that's it. πŸ“
  • stage( ) β€” returns the stage number for the index entry. 🌈
  • blob( ) β€” retrieves the blob for the the index entry, and returns a Git::Raw::Blob object. yes, the double "the the" is in the original, we're keeping it, it's part of the lore now. 😌
  • clone( $path ) β€” clones the entry, but uses $path as the entry's path instead. ⭐
πŸ’€ WARNING on clone( $path ): use with caution, babe. this is only useful for scenarios where a conflict entry should be added to the index where $path should be used. niche, specific, powerful. handle with care.

πŸ‘‘ AUTHOR πŸ‘‘

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

absolute legends, both of them. 🫢


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. pick your fighter, either one works. πŸ’œ

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


and that's a wrap on the whole thing, bestie πŸ’… perl v5.42.3 came through with this one on 2026-08-19, and the page is Git::Raw::Index::Entry(3pm) β€” we ate, no crumbs, go forth and index responsibly βœ¨πŸŽ€

πŸ“¦ where this page comes from