NAME

Git::Native::Oid - A libgit2 OID (20-byte SHA-1)

VERSION

version 0.003

SYNOPSIS

my $oid = Git::Native::Oid->from_hex('abcd...');
say $oid;          # full hex
say $oid->short;   # 7 chars
$oid->ptr;         # C pointer for libgit2

DESCRIPTION

A SHA-1 OID. Holds the raw 20 bytes; everything else is derived. The raw scalar is the anchor for any pointer libgit2 reads it through - keep the Oid alive as long as the pointer is in use.

SUPPORT

Issues

Please report bugs and feature requests on GitHub at https://github.com/Getty/p5-git-native/issues.

CONTRIBUTING

Contributions are welcome! Please fork the repository and submit a pull request.

AUTHOR

Torsten Raudssus <getty@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2026 by Torsten Raudssus <torsten@raudssus.de> https://raudssus.de/.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.