Skip to main content

Module objects

Module objects 

Source
Expand description

Git object utilities for GitTorrent SHA256 operations

Structs§

CommitObject
Git commit object data
GitObject
Git object with its SHA256 hash and data
TreeEntry
Git tree entry
TreeObject
Git tree object data

Enums§

GitObjectType
Git object types
TreeEntryMode
Tree entry modes

Functions§

extract_commit_objects
Extract objects for a specific commit and its history
extract_git_refs
Extract git references from a repository
extract_objects
Extract all Git objects from a repository
hash_to_oid
Convert GitHash back to git2::Oid Note: git2 currently only supports SHA1, so SHA256 hashes will fail
is_exportable
Check if a repository is exportable (has git-daemon-export-ok file)
oid_to_hash
Convert git2::Oid to GitHash (supports both SHA1 and SHA256)
oid_to_sha256Deprecated
parse_blob_object
Parse a blob object from git format
parse_commit_object
Parse a commit object from git format
parse_object_references
Parse object references from git object data.
parse_tree_object
Parse a tree object from git format.
sha256_to_oidDeprecated
write_objects
Write git objects to a repository