grit
CLILibrary
HEAD → docs/library/api-map
Library guide / grit-lib API mapMarkdown

grit-lib API map

Generated index of public grit-lib modules and key types with docs.rs links.

This page is regenerated from the local grit-lib rustdoc build (cargo doc -p grit-lib --no-deps) whenever you run make docs. Each row links to docs.rs for the matching item.

Item Kind Summary docs.rs
grit_lib::apply module Unified/git-diff patch parsing for grit apply. API
grit_lib::apply::BinaryPatchPayload struct Binary patch payload as compressed base85 chunks for forward/reverse apply. API
grit_lib::apply::FilePatch struct Represents one file in a unified diff. API
grit_lib::apply::Hunk struct A single hunk in a unified diff. API
grit_lib::apply::HunkLine enum Inflate zlib-compressed binary payload. API
grit_lib::attributes module Gitattributes parsing and pattern matching for check-attr and validation. API
grit_lib::attributes::AttrRule struct One line in a gitattributes file. API
grit_lib::attributes::AttrValue enum Parsed attribute value for display (check-attr output). API
grit_lib::attributes::MacroTable struct Macro definitions from [attr]name ... API
grit_lib::attributes::ParsedGitAttributes struct Result of parsing a gitattributes file. API
grit_lib::bitmap_walk module Reachability queries using pack / MIDX commit bitmaps (Git prepare_bitmap_walk semantics). API
grit_lib::bitmap_walk::BitmapWalkError enum Errors during a bitmap reachability walk. API
grit_lib::bitmap_walk::BitmapWalkUnsupported struct Bitmap walk could not run (unsupported filter or shallow repo); use a non-bitmap walk instead. API
grit_lib::bitmap_walk::ReachabilityQuery struct Query parameters for a bitmap reachability walk. API
grit_lib::bitmap_walk::ReachableSet struct Reachable objects from a ReachabilityQuery: in-index bits plus out-of-namespace oids. API
grit_lib::blame module Blame line-mapping algorithm. API
grit_lib::blame::BlameAttributedLine struct One blamed line returned by blame_file. API
grit_lib::blame::BlameCommitInfo struct Metadata for a commit referenced by BlameResult::lines. API
grit_lib::blame::BlameDiffAlgorithm enum Diff algorithm used when mapping lines between blob revisions during blame. API
grit_lib::blame::BlameLine struct A single line attribution produced by compute_blame. API
grit_lib::blame::BlameOptions struct Options for blame_file. API
grit_lib::blame::BlameResult struct Full blame result for one file at one revision. API
grit_lib::blame::BlameTextconvContext struct Cached config and attributes for optional textconv during blame. API
grit_lib::bloom module Changed-path Bloom filters for commit-graph files (Git bloom.c compatible). API
grit_lib::bloom::BloomBuildOutcome enum Result of building a Bloom filter payload for one commit. API
grit_lib::bloom::BloomFilterInvalid struct Invalid or missing Bloom filter data (zero-length filter, etc.). API
grit_lib::bloom::BloomFilterSettings struct Settings stored in the BDAT chunk header and used for hashing. API
grit_lib::branch_tracking module Branch vs remote-tracking comparison for status, checkout, and commit (matches git/remote.c). API
grit_lib::branch_tracking::AheadBehindMode enum How to compare local HEAD to a remote-tracking ref (AHEAD_BEHIND_FULL vs QUICK). API
grit_lib::branch_tracking::TrackingStat enum Outcome of comparing refs/heads/ to a tracking ref. API
grit_lib::bundle module Git bundle format (gitformat-bundle). API
grit_lib::bundle::Bundle struct An opened bundle file on disk. API
grit_lib::bundle::BundleError enum Bundle read/write/verify failures. API
grit_lib::bundle::BundleHeader struct Parsed bundle header (everything before the PACK stream). API
grit_lib::bundle::BundleSpec struct Input for write_bundle. API
grit_lib::bundle::BundleVerifyReport struct Outcome of Bundle::verify. API
grit_lib::bundle::BundleVersion enum Supported on-disk bundle header versions. API
grit_lib::bundle::BundleWriter struct Incremental writer for bundle bytes (header + pack). API
grit_lib::bundle::FilterSpec struct Wire filter specification carried in v3 @filter= capabilities. API
grit_lib::bundle::UnbundledRef struct A single ref entry returned from Bundle::unbundle. API
grit_lib::bundle_remote module Fetch and remote helpers for on-disk bundle files (clone / grit fetch from a .bundle). API
grit_lib::check_ref_format module Ref-name validation — git check-ref-format rules. API
grit_lib::check_ref_format::RefNameError enum Errors returned by check_refname_format. API
grit_lib::check_ref_format::RefNameOptions struct Options controlling validation. API
grit_lib::clone module Clone a remote repository: initialize, configure origin, fetch, and set up the default branch. API
grit_lib::clone::CloneError enum Errors during clone. API
grit_lib::clone::CloneOptions struct Options for clone. API
grit_lib::clone::CloneOutcome struct Result of a successful clone before working-tree checkout. API
grit_lib::combined_diff_patch module Git-style combined merge diff hunks (diff --cc / diff --combined). API
grit_lib::combined_diff_patch::CombinedDiffWsOptions struct Whitespace handling for combined diffs (Git xdl_opts subset). API
grit_lib::combined_tree_diff module Multi-parent combined tree diff (Git diff_tree_paths / find_paths_multitree). API
grit_lib::combined_tree_diff::CombinedDiffPath struct One path in a combined diff: merge result tree vs each parent tree. API
grit_lib::combined_tree_diff::CombinedParentSide struct One parent’s contribution at a combined-diff path. API
grit_lib::combined_tree_diff::CombinedParentStatus enum Per-parent coarse status in a combined diff (A / M / D). API
grit_lib::combined_tree_diff::CombinedTreeDiffOptions struct Options for the multitree walk. API
grit_lib::command_runner module Injectable subprocess execution for hooks, filters, credentials, and helpers. API
grit_lib::command_runner::CommandEnvironment struct How a child process should inherit or receive environment variables. API
grit_lib::command_runner::CommandExit struct Exit status of a completed child. API
grit_lib::command_runner::CommandHandleError struct Returned when an operation requires a live OS child but the handle is synthetic. API
grit_lib::command_runner::CommandOutput struct Output from RunningCommand::wait_with_output. API
grit_lib::command_runner::CommandRunner trait Spawns subprocesses; the only production implementation uses std::process::Command. API
grit_lib::command_runner::CommandSpec struct Typed description of a subprocess to spawn. API
grit_lib::command_runner::CommandStdin enum Stdin source for the child. API
grit_lib::command_runner::CommandStdio enum Stdio disposition for a child stream. API
grit_lib::command_runner::RecordedResponse enum Scripted responses for RecordingRunner. API
grit_lib::command_runner::RecordingRunner struct Records CommandSpec invocations and returns configurable exit statuses. API
grit_lib::command_runner::RunningCommand struct Live child process with optional piped stdio. API
grit_lib::command_runner::ShellInvocation enum Shell invocation mode (Git sh -c hooks and filters). API
grit_lib::command_runner::SystemCommandRunner struct Runs commands with the real OS process API. API
grit_lib::commit module Commit-metadata helpers shared by the porcelain commands. API
grit_lib::commit_encoding module Git commit encoding labels (encoding header, i18n.commitEncoding) mapped to codecs. API
grit_lib::commit_graph_file module Parsing Git commit-graph files and Bloom filter lookup (commit-graph.c / bloom.c compatible). API
grit_lib::commit_graph_file::BloomWalkStats struct Counters for GIT_TRACE2_PERF Bloom statistics (revision.c trace2_bloom_filter_statistics_atexit). API
grit_lib::commit_graph_file::CommitGraphChain struct Loaded commit-graph chain (newest layer first, matching commit-graph-chain file order). API
grit_lib::commit_graph_file::CommitGraphLayer struct One layer from .git/objects/info/commit-graph or commit-graphs/.graph. API
grit_lib::commit_graph_file::ParsedGraphDump struct Result of consulting Bloom filters before running a tree diff (matches revision.c). API
grit_lib::commit_graph_write module Serialize Git commit-graph v1 files with GDA2 + optional Bloom chunks (commit-graph.c compatible). API
grit_lib::commit_graph_write::BloomWriteStats struct Counters emitted as GIT_TRACE2_EVENT for Bloom generation (commit-graph.c). API
grit_lib::commit_graph_write::CommitGraphCommitInfo struct Per-commit data needed to write CDAT / Bloom. API
grit_lib::commit_pretty module Human-oriented commit one-line formats shared by porcelain commands. API
grit_lib::commit_trailers module Cherry-pick / sign-off trailer handling compatible with Git’s sequencer.c and trailer.c. API
grit_lib::commit_trailers::TrailerOpts struct Options parsed from a %(trailers:...) pretty placeholder, mirroring Git’s process_trailer_options in pretty.c / trailer.c. API
grit_lib::config module Git-compatible configuration file parser and accessor. API
grit_lib::config::ConfigEntry struct A single configuration entry with its origin metadata. API
grit_lib::config::ConfigFile struct A parsed configuration file that preserves the raw text for round-trip editing (set/unset/rename-section/remove-section). API
grit_lib::config::ConfigIncludeOrigin enum Where a ConfigFile was loaded from for Git include semantics. API
grit_lib::config::ConfigScope enum The scope (origin) of a configuration value. API
grit_lib::config::ConfigSet struct A merged view across all configuration scopes. API
grit_lib::config::GitConfigIntStrictError enum Why parse_git_config_int_strict failed (mirrors Git errno after git_parse_signed). API
grit_lib::config::IncludeContext struct Context for evaluating [includeIf] conditions (gitdir:, onbranch:, hasconfig:). API
grit_lib::config::LoadConfigOptions struct Options controlling how ConfigSet::load_with_options merges files and includes. API
grit_lib::configuration module Configuration and identity: config cascade, .gitmodules, author/committer idents. API
grit_lib::connectivity module Reachability checks for push / receive-pack connectivity verification. API
grit_lib::credentials module Credential layer — Git-compatible credential filling/approval/rejection for library embedders. API
grit_lib::credentials::Credential struct A structured Git credential. API
grit_lib::credentials::CredentialProvider trait The pluggable credential seam an embedder implements (or wraps). API
grit_lib::credentials::HelperCredentialProvider struct Git-compatible CredentialProvider that runs the configured credential.helper programs. API
grit_lib::crlf module CRLF / EOL conversion and clean/smudge filter support. API
grit_lib::crlf::AttrRule struct A parsed .gitattributes rule. API
grit_lib::crlf::AutoCrlf enum What core.autocrlf is set to. API
grit_lib::crlf::ConversionConfig struct Global conversion settings derived from config. API
grit_lib::crlf::ConversionError enum Error from internal encoding helpers (not public convert_to_git surface). API
grit_lib::crlf::ConvertToGitOpts struct Optional inputs for convert_to_git_with_opts (Git CONV_EOL_RENORMALIZE / index blob). API
grit_lib::crlf::CoreEol enum What core.eol is set to. API
grit_lib::crlf::CrlfLegacyAttr enum Legacy crlf gitattribute (deprecated in Git; still honored for EOL conversion). API
grit_lib::crlf::DiffAttr enum How the diff gitattribute affects diff output. API
grit_lib::crlf::EolAttr enum Per-file eol attribute from .gitattributes. API
grit_lib::crlf::FileAttrs struct Per-file attributes relevant to conversion. API
grit_lib::crlf::MergeAttr enum Per-file merge attribute from .gitattributes. API
grit_lib::crlf::SafeCrlf enum What core.safecrlf is set to. API
grit_lib::crlf::TextAttr enum Per-file text attribute from .gitattributes. API
grit_lib::crlf::WorkTreeEncodingError enum Working-tree encoding conversion failure (Git reencode_string_len returning NULL). API
grit_lib::delta_encode module Encode Git pack binary deltas (format decoded by crate::unpack_objects::apply_delta). API
grit_lib::delta_encode::DeltaIndex struct Rolling-hash index over a base buffer for reuse when encoding many targets. API
grit_lib::delta_islands module Delta islands — restrict cross-island deltas in pack-objects (--delta-islands). API
grit_lib::delta_islands::DeltaIslands struct Computed island marks for a pack-objects run. API
grit_lib::delta_islands::IslandBitmap struct One island membership bitmap (one bit per deduplicated island). API
grit_lib::diagnostics module Git-style diagnostic prefixes and typed warning sinks for embedders and the CLI. API
grit_lib::diagnostics::CollectingDiagnostics struct Collects warnings (and traces) for tests and the CLI. API
grit_lib::diagnostics::DiagnosticSink trait Receives warnings and optional trace lines from grit-lib. API
grit_lib::diagnostics::NullDiagnostics struct Discards all diagnostics (default for crate::repo::Repository). API
grit_lib::diagnostics::Trace enum Optional trace events (network debugging, etc.), separate from Warning. API
grit_lib::diagnostics::Warning enum A non-fatal condition worth surfacing to the user or an embedder. API
grit_lib::diff module Diff machinery — compare trees, index entries, and working tree files. API
grit_lib::diff::DiffEntry struct A single diff entry representing one changed path. API
grit_lib::diff::DiffIndexToWorktreeOptions struct Additional inputs for diff_index_to_worktree_with_options. API
grit_lib::diff::DiffStatus enum The kind of change between two sides of a diff. API
grit_lib::diff::SubmodulePorcelainFlags struct Submodule dirty bits aligned with Git’s DIRTY_SUBMODULE_* / porcelain v2 S??? API
grit_lib::diff::WorktreeAddRefresh enum Outcome of comparing a tracked index entry to its worktree path for staging refresh. API
grit_lib::diff::WorktreeAddRefreshParams struct Inputs for classify_worktree_entry_for_add. API
grit_lib::diff_indent_heuristic module Git-compatible diff hunk sliding (xdl_change_compact) including the indent heuristic. API
grit_lib::diff_moved module Move detection for git diff --color-moved, implementing the same behavior as git’s add_lines_to_move_detection + mark_color_as_moved + dim_moved_lines. API
grit_lib::diff_moved::ColorMovedMode enum --color-moved mode. API
grit_lib::diff_moved::MovedClass enum The color class assigned to one emitted line after move detection. API
grit_lib::diffing module Diffing: tree/content diff, rename detection, diffstat, line-log, pickaxe bloom. API
grit_lib::diffstat module Git-compatible --stat / diffstat layout (width, name truncation, bar scaling). API
grit_lib::diffstat::DiffstatOptions struct Options for laying out diffstat lines (Git diff_options stat fields). API
grit_lib::diffstat::FileStatInput struct Default total width for format-patch diffstat (MAIL_DEFAULT_WRAP in Git). API
grit_lib::dotfile module Git-compatible .git* / NTFS / HFS path checks (path.c, utf8.c). API
grit_lib::environment module Explicit discovery and configuration environment for embedding callers. API
grit_lib::environment::Environment struct Discovery and config variables that affect repository open/discover and ConfigSet loading. API
grit_lib::environment::RepositoryOptions struct Options passed to repository open/discover with an explicit Environment. API
grit_lib::error module Shared error types for grit-lib. API
grit_lib::error::BadNumericSource enum Why a Git config numeric value was rejected (git config int strict parsing). API
grit_lib::error::ConfigError enum Configuration parse and validation failures. API
grit_lib::error::DiffPathError enum Path lookup failures while formatting a diff. API
grit_lib::error::Error enum The top-level error type for all grit-lib operations. API
grit_lib::error::FilterError enum Clean/smudge filter and EOL conversion failures. API
grit_lib::error::FilterPhase enum Which filter hook failed. API
grit_lib::error::PathOutsideRepoError enum Path outside the repository during pathspec or transport resolution. API
grit_lib::error::RefLockError enum Reference lock failures while creating or updating a ref. API
grit_lib::error::SparseCheckoutWarning enum Sparse-checkout cone pattern parse warnings (non-fatal). API
grit_lib::fetch module Wire-protocol fetch orchestration over a crate::transport::Connection. API
grit_lib::fetch::NoProgress struct A Progress that discards everything. API
grit_lib::fetch::Progress trait Sink for the remote’s human-readable progress (side-band channel 2). API
grit_lib::fetch_head module Parsing FETCH_HEAD lines. API
grit_lib::fetch_negotiator module Skipping fetch negotiator — implements Git’s “skipping” negotiation strategy. API
grit_lib::fetch_negotiator::SkippingNegotiator struct Skipping algorithm negotiator for fetch have lines. API
grit_lib::fetch_submodules module Logic for git fetch --recurse-submodules (changed-submodule detection and config). API
grit_lib::fetch_submodules::ChangedSubmoduleFetch struct One submodule that gained new gitlink targets in rev-list --not . API
grit_lib::fetch_submodules::FetchRecurseSubmodules enum fetch.recurseSubmodules / --recurse-submodules modes for fetch. API
grit_lib::filter_process module Long-running Git filter protocol (filter..process), matching git-filter v2. API
grit_lib::filter_process::DelayedCheckoutError enum Failure from DelayedProcessCheckout::finish. API
grit_lib::filter_process::DelayedCheckoutProblem enum One delayed-checkout outcome that would have been printed as Git’s error: ... API
grit_lib::filter_process::DelayedProcessCheckout struct Paths waiting for list_available_blobs / retry smudge (Git finish_delayed_checkout). API
grit_lib::filter_process::DelayedProcessCheckoutEntry struct One path deferred by a process filter that returned status=delayed (Git delayed_checkout). API
grit_lib::filter_process::FilterProcessState struct Per-repository filter-process registry (long-running filter.*.process drivers). API
grit_lib::filter_process::FilterSmudgeMeta struct Optional metadata sent with smudge (ref, treeish, blob hex). API
grit_lib::fmt_merge_msg module Merge commit message formatter — git fmt-merge-msg logic. API
grit_lib::fmt_merge_msg::FmtMergeMsgOptions struct Options for fmt_merge_msg. API
grit_lib::fsck_standalone module Standalone object fsck for loose-object validation before hashing. API
grit_lib::fsck_standalone::FsckError struct Git-compatible fsck failure for loose object validation. API
grit_lib::fsck_standalone::FsckObjectOptions struct Repository hash width for object-id fields in commit, tag, and tree headers. API
grit_lib::gc module In-process maintenance primitives that embedders such as jj use in place of shelling out to git gc / git remote show / gix::refs::transaction. API
grit_lib::gc::PruneStats struct Result of a loose-object prune. API
grit_lib::gc::RefTransactionItem struct A single ref change in an update_refs batch transaction. API
grit_lib::git_binary_base85 module Base-85 codec for GIT binary patch sections (matches git/base85.c). API
grit_lib::git_binary_base85::DecodeError enum Errors returned while decoding a Git binary-patch base85 line. API
grit_lib::git_date module Git-compatible date parsing and display. API
grit_lib::git_date::TestToolDateResult enum Result of test-tool date — either lines for stdout or a process exit code (no output). API
grit_lib::git_date::approx module Git-compatible approxidate parsing. API
grit_lib::git_date::parse module Git-compatible date parsing (parse_date_basic, parse_date). API
grit_lib::git_date::parse::DateParseError struct Date string could not be parsed. API
grit_lib::git_date::show module Git-compatible date display (show_date, show_date_relative, strftime handling). API
grit_lib::git_date::tm module Time conversion helpers that produce Git-compatible timestamps. API
grit_lib::git_path module Git-compatible path normalization and helpers for test-tool path-utils. API
grit_lib::git_path::GitPathError enum Errors returned by Git-compatible path helper routines. API
grit_lib::gitmodules module .gitmodules validation (Git fsck / submodule-config parity). API
grit_lib::gitmodules::DotFsckIssue enum Problems reported while walking trees / blobs for .gitmodules / .gitattributes fsck. API
grit_lib::gitmodules::DotFsckTracker struct Tracks .gitmodules / .gitattributes blob OIDs discovered in trees (Git fsck_options oidsets). API
grit_lib::hash module Incremental hashing for Git object ids and file trailers. API
grit_lib::hash::Backend enum Which implementation the sha1 / sha2 dependency selects for algo on this CPU. API
grit_lib::hash::HashingWriter struct A writer that forwards bytes to an inner sink while accumulating a checksum. API
grit_lib::hash::ObjectHasher enum Incremental hasher for Git’s supported object-id algorithms. API
grit_lib::hash::ParallelHashError enum Failure from try_par_hash_with when a closure returns an error. API
grit_lib::hash::Parallelism struct Resolved worker thread count for parallel hash helpers. API
grit_lib::hash::TrailerMismatch struct Checksum at the end of bytes did not match a digest of the leading body. API
grit_lib::hide_refs module transfer.hideRefs / receive.hideRefs / uploadpack.hideRefs matching (Git ref_is_hidden). API
grit_lib::hooks module Hook execution utilities. API
grit_lib::hooks::CommitHookEnv struct Environment for commit-style hooks (GIT_INDEX_FILE, GIT_EDITOR, GIT_PREFIX, and extra pairs). API
grit_lib::hooks::HookError enum Hook subprocess failure (non-zero exit or spawn error). API
grit_lib::hooks::HookResult enum Result of running a hook. API
grit_lib::hooks::RunHookOptions struct Options for run_hook_opts. API
grit_lib::ident module Git author/committer identity lines (ident in Git’s fsck.c / commit.c). API
grit_lib::ident::ParsedSignatureTimes struct Successful parse of the trailing <+HHMM> portion of a signature. API
grit_lib::ident::SignatureTail enum Distinguishes a non-numeric date field from a numeric field that fails Git’s overflow rules. API
grit_lib::ident::SignatureTimestamp enum Parsed timestamp from a signature line for display and filtering. API
grit_lib::ident_config module Default identity values from config and the system (Git ident.c). API
grit_lib::ident_resolve module Git-compatible author/committer identity resolution (see upstream ident.c). API
grit_lib::ident_resolve::GitIdentityNameEnv enum Whether GIT_AUTHOR_NAME / GIT_COMMITTER_NAME is unset vs set (possibly empty). API
grit_lib::ident_resolve::IdentRole enum Author vs committer for GIT_* / author.* / committer.* lookup. API
grit_lib::ident_resolve::IdentityEnv trait Environment access used for identity resolution. API
grit_lib::ident_resolve::IdentityError enum Errors returned by strict identity resolution. API
grit_lib::ignore module Ignore and exclude matching for check-ignore. API
grit_lib::ignore::IgnoreMatch struct Metadata for a matching rule. API
grit_lib::ignore::IgnoreMatcher struct Engine used to evaluate ignore patterns against repository-relative paths. API
grit_lib::index module Git index (staging area) reading and writing. API
grit_lib::index::CacheTreeNode struct One node from Git’s TREE index extension. API
grit_lib::index::Index struct The in-memory representation of the Git index file. API
grit_lib::index::IndexEntry struct A single entry in the Git index. API
grit_lib::index::IndexLoadOptions struct Options for loading an index from disk. API
grit_lib::index::IndexLock struct Exclusive .git/index.lock held for a mutating porcelain operation. API
grit_lib::index::IndexStatFields struct Stat fields copied from a worktree Metadata probe during index staging. API
grit_lib::index::StatMatchPolicy struct Git match_stat_data policy (core.trustctime, core.checkstat, core.usenanosec). API
grit_lib::index_name_hash_lazy module Lazy, optionally multi-threaded index name/dir hash initialization compatible with Git’s name-hash.c (used by test-tool lazy-init-name-hash and regression test t3008). API
grit_lib::index_pack module Install a received packfile into the object store (index-pack path). API
grit_lib::index_pack::IngestPackOptions struct Options controlling how a received pack is ingested. API
grit_lib::index_pack::IngestedPack struct Result of installing a pack under objects/pack/. API
grit_lib::init_filesystem module Filesystem capability probes during repository initialization. API
grit_lib::init_filesystem::InitFilesystemConfigOptions struct Controls when init-time filesystem probes may write local config. API
grit_lib::interpret_trailers module Commit message trailer parsing and rewriting (Git-compatible). API
grit_lib::interpret_trailers::NewTrailerArg struct Placement of a new trailer relative to an anchor trailer. API
grit_lib::line_log module Line-level history (git log -L) — range tracking across diffs. API
grit_lib::line_log::DiffHunk struct One aligned parent/target hunk from a line diff (half-open line indices). API
grit_lib::line_log::DiffRanges struct Sequence of hunks from collect_diff_ranges (parent[i] aligns with target[i]). API
grit_lib::line_log::LineLogDisplay struct Captured diff input for format_line_log_diff (one file per hunk group). API
grit_lib::line_log::LineLogFile struct One tracked file with 0-based half-open line ranges. API
grit_lib::line_log::Range struct Half-open line range using 0-based indices (Git internal). API
grit_lib::line_log::RangeSet struct Sorted, disjoint, non-empty ranges. API
grit_lib::mailmap module Parse .mailmap and resolve author/committer identities (Git-compatible). API
grit_lib::mailmap::MailmapEntry struct Legacy line-shaped entry kept for API compatibility; prefer MailmapTable. API
grit_lib::mailmap::MailmapTable struct Parsed mailmap as a lookup table (Git string_list + nested namemap). API
grit_lib::merge_base module Merge-base and reachability primitives. API
grit_lib::merge_base::MergeBaseForDiffError enum Failure modes for merge_base_for_diff_index and merge_base_for_diff_two_commits. API
grit_lib::merge_base::ReachableWalkLimit enum Commits reachable from tips that are not ancestors of any hide tip, in committer-date order (newest first). API
grit_lib::merge_diff module Merge commit and combined (--cc / -c) diff helpers. API
grit_lib::merge_file module Three-way file merge — the engine behind grit merge-file. API
grit_lib::merge_file::ConflictStyle enum Conflict-marker output style. API
grit_lib::merge_file::MergeFavor enum How conflict regions should be resolved. API
grit_lib::merge_file::MergeInput struct Input and options for a three-way merge. API
grit_lib::merge_file::MergeOutput struct Result of a three-way merge. API
grit_lib::merge_trees module Rename-aware three-way tree merge for cherry-pick / revert style merges. API
grit_lib::merge_trees::TreeMergeConflictPresentation struct Labels and marker style for conflict output during tree merges. API
grit_lib::merge_trees::TreeMergeOutput struct Result of merging three trees with optional conflict-marker blobs for checkout. API
grit_lib::merge_trees::WhitespaceMergeOptions struct How to label the “theirs” side in textual conflict markers. API
grit_lib::merging module Merging: merge-base, tree/file merges, rerere, merge-message formatting. API
grit_lib::midx module Multi-pack-index (MIDX) file writing and minimal reading. API
grit_lib::midx::CompactError enum Failure modes of compact_multi_pack_index, each mapping to one of git’s user-facing diagnostics in cmd_multi_pack_index_compact. API
grit_lib::midx::MidxBitmapWriteOutcome enum Outcome of an optional MIDX reachability bitmap write. API
grit_lib::midx::MidxBtmpPackRange struct One pack’s slice of the MIDX pseudo-bitmap namespace (BTMP chunk). API
grit_lib::midx::MidxObjectRef struct A single MIDX-referenced object together with the pack it is attributed to. API
grit_lib::midx::MidxReuseTables struct OID rows from the active multi-pack-index, plus reverse-index order for pack-reuse bitmap bits. API
grit_lib::midx::WriteMultiPackIndexOptions struct Options for writing a multi-pack index (extension of the simple writer). API
grit_lib::midx::WriteMultiPackIndexResult struct Result of write_multi_pack_index_with_options. API
grit_lib::midx_error module Typed errors for multi-pack-index load and verification. API
grit_lib::midx_error::MidxError enum Unified diff / patch application errors. API
grit_lib::midx_error::MidxError enum A fatal multi-pack-index condition (Git die() after error: lines). API
grit_lib::name_rev module Name-rev: name commits relative to refs. API
grit_lib::name_rev::NameRevOptions struct Options that control which refs participate in naming. API
grit_lib::net_trace module Network operation tracing through crate::diagnostics::Trace::Network. API
grit_lib::notes module git notes tree manipulation — the fanout tree mapping object -> note blob. API
grit_lib::notes::NotesTreeEntry struct Per-worktree subdirectory holding the conflicted note blobs during a notes merge. API
grit_lib::object_store module Object storage: ids/kinds, the object database, packs, multi-pack index, deltas. API
grit_lib::objects module Git object model: object IDs, kinds, and in-memory representations. API
grit_lib::objects::CommitData struct Parsed representation of a commit object. API
grit_lib::objects::HashAlgo enum A Git hash algorithm. API
grit_lib::objects::HashVersionError struct Error when converting an on-disk hash-version byte to HashAlgo. API
grit_lib::objects::Object struct A decompressed, header-stripped Git object. API
grit_lib::objects::ObjectId struct A Git object identifier: a SHA-1 (20-byte) or SHA-256 (32-byte) digest. API
grit_lib::objects::ObjectInfo struct Kind and uncompressed size of a Git object without loading its payload. API
grit_lib::objects::ObjectKind enum The four Git object types. API
grit_lib::objects::TagData struct Parsed representation of an annotated tag object. API
grit_lib::objects::TreeEntry struct A single entry in a Git tree object. API
grit_lib::odb module Loose object database: reading and writing zlib-compressed Git objects. API
grit_lib::odb::LooseStore struct On-disk loose object store for one objects/ directory. API
grit_lib::odb::LooseStore struct Loose-object storage under objects/xx/ (zlib-compressed Git objects). API
grit_lib::odb::MemoryStore struct In-memory object map keyed by ObjectId. API
grit_lib::odb::ObjectStore trait Read-only object storage: lookup, metadata, streaming, and enumeration. API
grit_lib::odb::Odb struct A loose-object database rooted at a given objects/ directory. API
grit_lib::odb::OdbBuilder struct Configure and construct an Odb with a pluggable primary backend. API
grit_lib::odb::WritableObjectStore trait Object storage that supports inserting new objects. API
grit_lib::odb::WriteOptions struct Options for Odb::write_with_options. API
grit_lib::odb::builder module Build an Odb with a custom primary store and optional read overlays. API
grit_lib::odb::builder::OdbBuilder struct Configure and construct an Odb with a pluggable primary backend. API
grit_lib::odb::store module Pluggable object storage backends and the ObjectStore trait surface. API
grit_lib::odb::store::CompositeStore struct Build an Odb with a custom primary store and optional read overlays. API
grit_lib::odb::store::CompositeStore struct Read-only store that consults an ordered list of backends. API
grit_lib::odb::store::FilesSource struct Read/write object storage backed by one objects/ directory tree. API
grit_lib::odb::store::MemoryStore struct In-memory object map keyed by ObjectId. API
grit_lib::odb::store::MidxObjects struct MIDX-backed read-only ObjectStore for one objects/ directory. API
grit_lib::odb::store::MidxObjectsStatus enum Whether MidxObjects can serve reads for this repository. API
grit_lib::odb::store::ObjectStore trait Read-only object storage: lookup, metadata, streaming, and enumeration. API
grit_lib::odb::store::ObjectStream struct Streaming handle for a single object’s uncompressed payload. API
grit_lib::odb::store::PackFilter struct Which local pack indexes participate in filtered membership checks. API
grit_lib::odb::store::PackedObjects struct Pack-index-backed read-only ObjectStore for one objects/ directory. API
grit_lib::odb::store::WritableObjectStore trait Object storage that supports inserting new objects. API
grit_lib::odb::store::loose module Loose-object storage under objects/xx/ (zlib-compressed Git objects). API
grit_lib::odb::store::loose::LooseStore struct On-disk loose object store for one objects/ directory. API
grit_lib::pack module Pack and pack-index helpers for object counting and verification. API
grit_lib::pack::LocalPackInfo struct Basic information about local packs. API
grit_lib::pack::PackData struct Immutable bytes of a .pack or MIDX file. API
grit_lib::pack::PackIndex struct Parsed pack index with fanout-accelerated OID lookup and in-place table reads. API
grit_lib::pack::PackIndexEntry struct Owned pack index row (collect from PackIndex::iter when needed). API
grit_lib::pack::PackIndexEntryRef struct Borrowed view of one row in a pack index. API
grit_lib::pack::PackLookupOptions struct Options controlling which local packs participate in a lookup pass. API
grit_lib::pack::PackedDeltaDependency enum Dependency of a packed delta object at object_offset within pack_bytes. API
grit_lib::pack::PackedType enum A pack object type as encoded in the packed stream header. API
grit_lib::pack::VerifyObjectRecord struct A decoded object header record used by verify-pack. API
grit_lib::pack_bitmap module Read Git pack and multi-pack-index reachability bitmaps (.bitmap / BITM v1). API
grit_lib::pack_bitmap::BitmapError enum Failure mode when a .bitmap sidecar cannot be used. API
grit_lib::pack_bitmap::BitmapIndex struct Memory-mapped pack or MIDX reachability bitmap (Git BITM v1). API
grit_lib::pack_bitmap::BitmapIndexCache struct Repository-scoped cache slot for BitmapIndex::open. API
grit_lib::pack_bitmap::CommitReachabilityBitmap struct Decoded reachability set for one commit (bits index pack/MIDX object positions). API
grit_lib::pack_bitmap::MidxBitmapWriter struct Writes .bitmap sidecars for multi-pack-index files (MIDX checksum in header). API
grit_lib::pack_bitmap::PackBitmapWriteError enum Failure while writing a pack reachability bitmap. API
grit_lib::pack_bitmap::PackBitmapWriteOptions struct Options controlling pack bitmap generation (caller-supplied; not read from the environment). API
grit_lib::pack_bitmap::PackBitmapWriter struct Writes .bitmap sidecars for pack indexes produced by all-into-one repacks. API
grit_lib::pack_bitmap::TypeBitmap struct Borrowed type filter bitmap (commits, trees, blobs, or tags). API
grit_lib::pack_name_hash module Git pack bitmap name-hash functions (pack_name_hash / pack_name_hash_v2). API
grit_lib::pack_object_select module Object selection for pack-objects (walk or pack bitmap reachability). API
grit_lib::pack_object_select::PackEnumerateOptions struct Parameters for enumerate_pack_objects. API
grit_lib::pack_object_select::PackObjectSelection struct Objects to emit in a negotiated pack plus peer-held closure for thin deltas. API
grit_lib::pack_objects module Negotiation-driven pack-objects: enumerate wants minus haves, delta search, stream PACK v2. API
grit_lib::pack_objects::PackBuildOptions struct Options controlling pack-objects output (also used by build_pack). API
grit_lib::pack_objects::PackBuildOptions struct Identity and message for clone reflog entries written by the library. API
grit_lib::pack_objects::PackObjects struct Streaming pack-objects builder over an Odb. API
grit_lib::pack_objects::PackObjectsOptions struct Extended options for PackObjects. API
grit_lib::pack_objects::PackProgress enum Progress hook for long pack builds. API
grit_lib::pack_objects::PackStats struct Counters reported after a successful pack write. API
grit_lib::pack_receive module Stream side-band pack data from fetch/clone into memory or a pack temp file. API
grit_lib::pack_receive::PackReceiveTarget enum Where demuxed pack bytes are stored. API
grit_lib::pack_receive::TempPackReceive struct A temp pack file under objects/pack/ for streaming clone/fetch receive. API
grit_lib::pack_rev module On-disk pack reverse index (.rev) — RIDX format matching Git’s pack-write.c. API
grit_lib::pack_store module Repository-scoped pack and MIDX read caches. API
grit_lib::pack_store::PackStore struct Per-objects/ cache of pack indexes, bytes, MIDX views, and delta-base LRU state. API
grit_lib::patch_ids module Patch-ID computation for commit equivalence detection. API
grit_lib::patch_ids::PatchIdMode enum How to compute a patch-ID from unified diff text. API
grit_lib::path module Git-compatible verification of tree/index path components. API
grit_lib::path::PathProtection struct Path protection settings from core.protectHFS / core.protectNTFS. API
grit_lib::path_icase module Case-insensitive path identity when core.ignorecase is enabled. API
grit_lib::path_icase::Stage0IcasePathMap struct Map from case-folded path hash buckets to index spellings (built once per staging batch). API
grit_lib::path_icase::Stage0TrackedPaths struct Stage-0 tracked paths for O(1) average lookups during untracked scans. API
grit_lib::path_walk module Path-batched object graph walk matching Git’s walk_objects_by_path / test-tool path-walk. API
grit_lib::path_walk::PathWalkCounts struct One line of test-tool path-walk output (excluding trailing summary lines). API
grit_lib::path_walk::PathWalkOptions struct Options for walk_objects_by_path, aligned with Git’s struct path_walk_info. API
grit_lib::pathspec module Git-compatible pathspec matching (magic tokens and global flags). API
grit_lib::pathspec::PathOutsideRepository struct Resolved path lies outside the repository work tree (Git prefix_path_gently failure). API
grit_lib::pathspec::PathspecMatchContext struct Optional path metadata for literal pathspecs with a trailing / (tree-walk / diff-tree). API
grit_lib::pkt_line module Git pkt-line format helpers. API
grit_lib::pkt_line::Packet enum A single packet read from the wire. API
grit_lib::plumbing module Plumbing operations — low-level, machine-stable building blocks that map ~1:1 to a Git plumbing command (e.g. API
grit_lib::porcelain module Porcelain operations — user-facing engines that assemble a structured result model from plumbing pieces (e.g. API
grit_lib::porcelain::add module Stage working-tree changes into the index (git add). API
grit_lib::porcelain::add::StageMode enum What paths stage should update (git add vs git add -u). API
grit_lib::porcelain::add::StageOptions struct Inputs for stage. API
grit_lib::porcelain::add::StageOutcome struct Counts returned by stage. API
grit_lib::porcelain::checkout module git checkout worktree-apply primitives. API
grit_lib::porcelain::cherry_pick module Merge-strategy helpers shared by pick/revert replay and other tree merges. API
grit_lib::porcelain::cherry_pick::WhitespaceStrategyOptions struct Whitespace-handling flags parsed from -X API
grit_lib::porcelain::clean module Remove untracked (and optionally ignored) paths from the work tree. API
grit_lib::porcelain::clean::CleanOptions struct Inputs for clean_untracked. API
grit_lib::porcelain::clean::CleanOutcome struct Result of clean_untracked. API
grit_lib::porcelain::commit module Create a commit from the current index and move the checked-out branch. API
grit_lib::porcelain::commit::CommitOutcome struct Result of create_commit. API
grit_lib::porcelain::commit::CommitRequest struct Inputs for create_commit. API
grit_lib::porcelain::log module git log ref decoration as structured data. API
grit_lib::porcelain::log::DecorationFilter struct The --decorate-refs / --decorate-refs-exclude / log.excludeDecoration ref filter. API
grit_lib::porcelain::log::DecorationItem struct One ref (or synthetic label) attached to a commit for --decorate / %d. API
grit_lib::porcelain::log::DecorationKind enum Decoration category for git log --decorate colouring (color.decorate.*). API
grit_lib::porcelain::merge module git merge index/head algorithm core. API
grit_lib::porcelain::paths module Remove and rename paths in the working tree and index (git rm / git mv semantics). API
grit_lib::porcelain::paths::MoveOutcome struct Result of move_path. API
grit_lib::porcelain::paths::RemoveOptions struct Options for remove_paths. API
grit_lib::porcelain::paths::RemoveOutcome struct Result of remove_paths. API
grit_lib::porcelain::rebase module git rebase todo-list model and squash/fixup message assembly. API
grit_lib::porcelain::rebase::FixupMessageMode enum Whether a fixup -C/fixup -c step uses the replaced commit message verbatim or opens an editor to amend it. API
grit_lib::porcelain::rebase::RebaseTodoCmd enum A linear interactive-rebase todo command keyword. API
grit_lib::porcelain::replay module Single-commit replay (cherry-pick and revert) onto the current branch. API
grit_lib::porcelain::replay::ReplayDirection enum Whether replay_commit applies a commit’s patch or its inverse. API
grit_lib::porcelain::replay::ReplayOutcome enum Result of replay_commit. API
grit_lib::porcelain::replay::ReplayRequest struct Inputs for replay_commit. API
grit_lib::porcelain::restore module Restore working tree and/or index paths from the index, HEAD, or another tree (git restore semantics). API
grit_lib::porcelain::restore::RestoreOptions struct Options for restore_paths, translated from the grit restore CLI. API
grit_lib::porcelain::restore::RestoreOutcome struct Outcome of a restore operation: paths written and paths removed in each target. API
grit_lib::porcelain::restore::RestoreSource enum Where explicit --source content comes from; default targets use the index or HEAD. API
grit_lib::porcelain::revert module Revert-specific helpers (revision ordering and commit messages). API
grit_lib::porcelain::stage_tracked module Stage modifications and deletions of already-tracked paths (git commit -a / -a staging). API
grit_lib::porcelain::stage_tracked::StageTrackedSummary struct Summary of paths updated while staging tracked modifications/deletions. API
grit_lib::porcelain::staging module Stage worktree changes into the index (grit add / commit -a engine). API
grit_lib::porcelain::stash module Stash create/store/list/drop/apply/pop/show primitives. API
grit_lib::porcelain::stash::FlatTreeEntry struct A single blob entry from a recursively flattened tree. API
grit_lib::porcelain::stash::StashCreateOptions struct Options for create_stash and push_stash. API
grit_lib::porcelain::stash::StashEntry struct One entry from list_stashes (stash@{{index}} in newest-first order). API
grit_lib::porcelain::status module git status as a structured operation. API
grit_lib::porcelain::status::IgnoredMode enum How ignored files are reported (git status --ignored[=]). API
grit_lib::porcelain::status::RenameDetection struct Rename/copy detection settings for the status diffs (status.renames / --find-renames, status.renameLimit, copy detection). API
grit_lib::porcelain::status::StatusModel struct The computed result of git status: everything the renderers need, with no presentation applied. API
grit_lib::porcelain::status::StatusOptions struct Inputs that drive what status computes. API
grit_lib::porcelain::status::UntrackedMode enum How untracked files are reported (git status --untracked-files=). API
grit_lib::porcelain::tag module git tag listing/filtering core. API
grit_lib::porcelain::worktree_guard module Lightweight worktree cleanliness checks without a full status pass. API
grit_lib::porcelain::worktree_guard::TreeSwitchPlan struct Inputs for a branch switch or fast-forward checkout after cleanliness checks. API
grit_lib::porcelain::worktree_guard::WorktreeSnapshot struct Loaded index and HEAD tree for worktree mutation guards. API
grit_lib::precompose_config module Read core.precomposeunicode without opening a full Repository. API
grit_lib::prelude module The types most callers need, re-exported for use grit_lib::prelude::*;. API
grit_lib::progress module Progress reporting and cancellation across the library/CLI boundary. API
grit_lib::progress::Cancel trait A cancellation signal checked by long-running library operations at loop boundaries. API
grit_lib::progress::NeverCancel struct A Cancel that never signals cancellation. API
grit_lib::progress::NullProgress struct A ProgressSink that discards every update. API
grit_lib::progress::ProgressSink trait A sink for progress updates emitted by a library operation. API
grit_lib::promisor module Partial-clone promisor bookkeeping used by Grit. API
grit_lib::promisor_remote module The “promisor-remote” protocol v2 capability (see gitprotocol-v2(5) and Documentation/config/promisor.adoc). API
grit_lib::promisor_remote::PromisorInfo struct One advertised or configured promisor remote. API
grit_lib::promisor_remote::PromisorReply struct The client’s reply to the server’s promisor-remote advertisement. API
grit_lib::protocol module Protocol allow/deny policy and client wire-protocol version selection. API
grit_lib::protocol::ClientProtocolVersionInputs struct Explicit inputs for selecting the client-side Git wire protocol version. API
grit_lib::protocol::ProtocolError enum Errors returned when a transport protocol is not allowed. API
grit_lib::protocol::ProtocolPolicyInputs struct Explicit inputs for protocol allow/deny evaluation. API
grit_lib::protocol_v2 module Pure protocol-v2 capability parsing and request-fragment building. API
grit_lib::protocol_v2::FetchResponseSection enum A section header in a protocol-v2 command=fetch response. API
grit_lib::prune_packed module Library implementation of prune-packed. API
grit_lib::prune_packed::PrunePackedOptions struct Options controlling the behaviour of prune_packed_objects. API
grit_lib::push module Wire-protocol push orchestration over a crate::transport::Connection. API
grit_lib::push_cert module Signed-push certificate generation and verification. API
grit_lib::push_cert::CertRefUpdate struct A single ref update line in a push certificate. API
grit_lib::push_cert::PushCertEnv struct The hook-visible certificate environment, mirroring receive-pack’s GIT_PUSH_CERT* variables. API
grit_lib::push_report module Push status reporting that matches Git’s output. API
grit_lib::push_report::PushRefResult struct One reference’s resolved push result, ready for display. API
grit_lib::push_report::PushRefStatus enum The resolved outcome of a single reference update during a push. API
grit_lib::push_report::PushStatusOutput struct Output produced by format_push_status. API
grit_lib::push_submodules module Submodule recursion for git push (--recurse-submodules). API
grit_lib::push_submodules::PushRecurseSubmodules enum How git push should recurse into submodules. API
grit_lib::quote_path module C-style path quoting compatible with Git’s quote.c / core.quotepath. API
grit_lib::receive_pack module Receive-pack configuration and pack-header helpers. API
grit_lib::receive_quarantine module Temporary object directories for receive-pack (Git quarantine). API
grit_lib::receive_quarantine::ReceiveQuarantine struct A receive-pack quarantine directory under the repository’s objects/. API
grit_lib::ref_exclusions module Reference exclusion rules for rev-list / rev-parse (--exclude, --exclude-hidden). API
grit_lib::ref_exclusions::RefExclusions struct Patterns that exclude refs from --all / glob expansion, including hidden-ref config. API
grit_lib::ref_namespace module Git GIT_NAMESPACE handling: map logical ref names to storage under refs/namespaces/.../. API
grit_lib::ref_storage module Typed ref storage backend selection (files vs reftable). API
grit_lib::ref_storage::RefStorageFormat enum On-disk ref storage backend named by extensions.refStorage. API
grit_lib::references module References: the refs backends, reflog, refspecs, name validation, namespaces. API
grit_lib::reflog module Reflog reading and management. API
grit_lib::reflog::GcReflogExpireConfig struct Per-ref gc..reflogExpire* rules plus global gc.reflogExpire / gc.reflogExpireUnreachable. API
grit_lib::reflog::GcReflogPattern struct Per-ref gc..reflogExpire* rule from config. API
grit_lib::reflog::ReflogEntry struct A single reflog entry. API
grit_lib::reflog::ReflogExpireAction struct Per-entry report from expire_reflog_git. API
grit_lib::reflog::ReflogExpireActionKind enum What happened to one reflog entry during expire_reflog_git. API
grit_lib::reflog::ReflogExpireParams struct Options for expire_reflog_git. API
grit_lib::reflog::ReflogExpireResult struct Result of expire_reflog_git: prune count plus a per-entry action list. API
grit_lib::refs module Reference storage — files backend + reftable backend. API
grit_lib::refs::BranchCommitRefLock struct Loose branch ref lock held between CAS validation and the ref file commit. API
grit_lib::refs::BranchCommitRefUpdate struct Move a checked-out branch to new_oid and append matching branch and HEAD reflogs. API
grit_lib::refs::LogRefsConfig enum Core logAllRefUpdates modes (after config lookup), matching Git’s log_refs_config. API
grit_lib::refs::PackedRefs struct A one-time, in-memory snapshot of a ref store’s packed-refs file. API
grit_lib::refs::RawRefLookup enum Outcome of a single storage-level ref lookup (Git refs_read_raw_ref style). API
grit_lib::refs::Ref enum A symbolic or direct reference. API
grit_lib::refs::RefBatchItem struct One ref create/update/delete in a batch transaction (see crate::gc::update_refs). API
grit_lib::refs::RefnameUnavailable enum Why a reference name cannot be created (Git refs_verify_refname_available style). API
grit_lib::refs::store module Pluggable reference storage: typed transactions and backends. API
grit_lib::refs::store::Expected enum Compare-and-swap expectation for a single ref update. API
grit_lib::refs::store::FilesRefStore struct Loose + packed ref storage on disk. API
grit_lib::refs::store::FilesRefStoreConfig struct Explicit context for a files ref store (no environment reads for namespace). API
grit_lib::refs::store::MemoryRefStore struct Fully in-memory ref database with transactional updates. API
grit_lib::refs::store::PreparedRefTransaction trait Committable ref update batch returned from RefStore::prepare. API
grit_lib::refs::store::RawRef enum Storage-level ref value without DWIM or resolution. API
grit_lib::refs::store::RefEntry struct One ref returned from iteration, optionally with a peeled object id. API
grit_lib::refs::store::RefStorageFormat enum Which physical backend backs a super::RefStore. API
grit_lib::refs::store::RefStore trait Reference storage backend (loose/packed files, reftable, or in-memory). API
grit_lib::refs::store::RefStoreError enum Failure modes for reference store reads and transactions. API
grit_lib::refs::store::RefTransaction struct Batch of ref updates prepared for super::RefStore::prepare. API
grit_lib::refs::store::RefUpdate struct One ref create, update, delete, or reflog-only touch in a transaction. API
grit_lib::refs::store::RefUpdateFlags struct Per-update flags (Git REF_NO_DEREF / REF_LOG_ONLY semantics). API
grit_lib::refs::store::ReflogUpdate struct Metadata appended to a ref update for the reflog. API
grit_lib::refs::store::ReftableRefStore struct On-disk ref storage using the reftable backend (extensions.refStorage = reftable). API
grit_lib::refs_fsck module Reference database consistency checks for git refs verify and git fsck --references. API
grit_lib::refs_fsck::RefsFsckIssue struct One diagnostic (use format_refs_fsck_line for Git-compatible output). API
grit_lib::refs_fsck::RefsFsckSeverity enum Severity of a refs-fsck diagnostic. API
grit_lib::refspec module Refspec parsing and validation — a port of git/refspec.c. API
grit_lib::refspec::RefspecError enum Error returned when a refspec cannot be parsed. API
grit_lib::refspec::RefspecItem struct A parsed refspec item. API
grit_lib::reftable module Reftable format — binary reference storage. API
grit_lib::reftable::LogRecord struct A decoded log record. API
grit_lib::reftable::RefRecord struct A decoded ref record. API
grit_lib::reftable::RefValue enum A single reference record as stored in a reftable. API
grit_lib::reftable::ReftableReader struct Reads a single reftable file from a byte buffer. API
grit_lib::reftable::ReftableStack struct Manages the $GIT_DIR/reftable/ directory and tables.list stack. API
grit_lib::reftable::ReftableTransactionUpdate struct A ref update that should be written to a reftable transaction. API
grit_lib::reftable::ReftableWriter struct Writes a single reftable file. API
grit_lib::reftable::WriteOptions struct Write options for reftable creation. API
grit_lib::remote module Unified remote URL typing and transport dispatch for fetch, push, and ref listing. API
grit_lib::remote::HttpClientFactory trait Builds HTTP clients for smart-HTTP remotes. API
grit_lib::remote::ListRefsOptions struct Options controlling Remote::list_refs output, aligned with git ls-remote. API
grit_lib::remote::Remote struct A resolved remote: name (if from config), URL(s), and fetch refspecs. API
grit_lib::remote::RemoteError enum Errors specific to remote URL resolution and dispatch. API
grit_lib::remote::RemoteRef struct A single reference returned by Remote::list_refs. API
grit_lib::remote::RemoteUrl enum A parsed remote URL by transport kind. API
grit_lib::repo module Repository discovery and the primary Repository handle. API
grit_lib::repo::Repository struct A handle to an open Git repository. API
grit_lib::repo_caches module Repository-scoped caches shared by an open Repository. API
grit_lib::repo_caches::RepoCaches struct Per-repository cache arena (held behind Arc on Repository). API
grit_lib::rerere module Git-compatible rerere (MERGE_RR, rr-cache/, conflict ID hashing). API
grit_lib::rerere::RerereAutoupdate enum Outcome of rerere handling one path (replaces stderr status lines). API
grit_lib::rerere::RerereEvent struct One rerere status event for a path. API
grit_lib::resolve_undo module Git index REUC (resolve-undo) extension — records unmerged stages when a conflict is resolved. API
grit_lib::resolve_undo::ResolveUndoRecord struct Per-path undo data: up to three conflict stages (index 0 = stage 1). API
grit_lib::rev_list module Commit traversal and output planning for rev-list. API
grit_lib::rev_list::BisectEntry struct Per-commit bisection score for rev-list --bisect* output. API
grit_lib::rev_list::BisectSelection struct Bisection analysis result for a selected revision set. API
grit_lib::rev_list::FilterObjectKind enum Kind selector for object:type= filters. API
grit_lib::rev_list::MissingAction enum Behavior when reachable objects are missing. API
grit_lib::rev_list::ObjectFilter enum Object filter specification for --filter=. API
grit_lib::rev_list::ObjectWalkRoot struct Non-commit root from revision arguments (tag, rev:path, raw tree/blob OID), for object walks. API
grit_lib::rev_list::OrderingMode enum Ordering mode for commit output. API
grit_lib::rev_list::OutputMode enum User-facing output mode for rev-list. API
grit_lib::rev_list::RevListOptions struct Parsed and normalized options for rev-list traversal. API
grit_lib::rev_list::RevListResult struct Final commit selection result. API
grit_lib::rev_list_error module Typed failures from crate::rev_list. API
grit_lib::rev_list_error::RevListError enum Failure modes when walking revisions or parsing rev-list options. API
grit_lib::rev_parse module Revision parsing and repository discovery helpers for rev-parse. API
grit_lib::rev_parse::IndexColonSpec struct Parsed :path / :N:path index revision syntax (leading colon, not :/search). API
grit_lib::rev_parse::IndexPathEntry struct One index entry resolved from a :path / :N:path revision string. API
grit_lib::rev_parse::TreeishBlobAtPath struct Resolved blob (non-tree) at treeish:path for diff plumbing. API
grit_lib::rev_parse_error module Typed failures from revision parsing (crate::rev_parse). API
grit_lib::rev_parse_error::AmbiguousObjectHint struct One candidate line when a short object id is ambiguous. API
grit_lib::rev_parse_error::RevParseError enum Failure modes when resolving revision specs, upstream/push refs, paths, and reflogs. API
grit_lib::revision module Revision machinery: rev-parse, rev-list, name-rev, commit-graph. API
grit_lib::serve module Server side of the Git wire protocol: answering fetches and accepting pushes. API
grit_lib::serve::HookRunRecord struct One server-side hook invocation during receive-pack. API
grit_lib::serve::ProtocolVersion enum Wire protocol version requested by the client. API
grit_lib::serve::ReceiveOutcome struct What a push session did. API
grit_lib::serve::ReceivePolicy struct Which ref updates the server refuses. API
grit_lib::serve::RefUpdateResult struct The result of one requested ref update. API
grit_lib::serve::ServeError enum Errors produced while serving a fetch or a push. API
grit_lib::serve::ServeOptions struct How a serving session is framed on the wire. API
grit_lib::shallow module Shallow repository metadata (.git/shallow). API
grit_lib::shared_repo module Shared-repository permission helpers (core.sharedRepository, --shared). API
grit_lib::signing module Commit/tag GPG (and gpgsm/ssh) signing and signature verification. API
grit_lib::signing::GpgConfig struct Resolved signing/verification configuration. API
grit_lib::signing::GpgFormat enum The signature format selected via gpg.format. API
grit_lib::signing::SignatureCheck struct A parsed signature check result. API
grit_lib::signing::TrustLevel enum Signature trust level, as reported for a verified signature. API
grit_lib::sparse_checkout module Sparse-checkout pattern parsing and path membership (cone and non-cone). API
grit_lib::sparse_checkout::ConePatterns struct Cone-mode sparse state: keys use a leading / (Git’s internal form). API
grit_lib::sparse_checkout::ConeWorkspace struct Mutable cone sparse state (Git pattern_list hashmaps) for building sparse-checkout files. API
grit_lib::sparse_checkout::NonConePatterns struct Parsed non-cone sparse-checkout patterns in file order (last match wins). API
grit_lib::split_index module Split index: link extension and sharedindex. (Git split-index.c). API
grit_lib::split_index::WriteSplitIndexRequest struct Request from update-index for the next index write. API
grit_lib::state module Repository state machine — HEAD resolution, branch status, and in-progress operation detection. API
grit_lib::state::HeadState enum The current state of HEAD. API
grit_lib::state::InProgressOperation enum An in-progress operation that the repository is in the middle of. API
grit_lib::state::RepoState struct Full snapshot of a repository’s state. API
grit_lib::state::WtStatusState struct Snapshot of repository state used by git status long-format output (wt-status.c). API
grit_lib::stripspace module Core logic for git stripspace. API
grit_lib::stripspace::Mode enum Processing mode for process. API
grit_lib::submodule_active module Submodule “active” state (submodule.c is_submodule_active parity). API
grit_lib::submodule_config module Submodule registration and activation (Git submodule.c parity for tooling). API
grit_lib::submodule_config::SubmoduleRegistration struct Maps a submodule work tree path (as in the index / .gitmodules) to its submodule section name. API
grit_lib::submodule_config_cache module Submodule configuration cache (Git submodule-config.c subset for test-tool). API
grit_lib::submodule_config_cache::SubmoduleConfigCache struct Cache of parsed .gitmodules blobs (by blob OID) plus path/name indexes. API
grit_lib::submodule_config_cache::SubmoduleInfo struct Resolved submodule identity for test output (Submodule name: 'x' for path 'y'). API
grit_lib::submodule_gitdir module Submodule gitdir paths when extensions.submodulePathConfig is enabled. API
grit_lib::terminal module Cross-platform terminal capability detection for ANSI color output. API
grit_lib::textconv_cache module Git-compatible diff..cachetextconv storage under refs/notes/textconv/. API
grit_lib::transfer module Embedder-facing transfer (fetch / push) result & option types, plus the negotiation-driven pack builder. API
grit_lib::transfer::FetchOptions struct Options controlling a fetch. API
grit_lib::transfer::FetchOutcome struct The structured result of a fetch, ready for the embedder’s ref-store apply. API
grit_lib::transfer::PushOptions struct Options controlling a push. API
grit_lib::transfer::PushOutcome struct The structured result of a push. API
grit_lib::transfer::PushRefSpec struct A single ref update requested by a push. API
grit_lib::transfer::RefUpdate struct The resolved outcome of one reference during a fetch. API
grit_lib::transfer::TagMode enum Which tags to fetch alongside the requested refs. API
grit_lib::transfer::UpdateMode enum How a single reference resolved during a fetch (or would resolve in a push). API
grit_lib::transport module Embedder-facing transport abstraction for the Git wire protocols. API
grit_lib::transport::Advertisement struct The captured ref/capability advertisement for a v0/v1 connection. API
grit_lib::transport::ConnectOptions struct Options controlling the transport handshake. API
grit_lib::transport::Connection trait A live, bidirectional pkt-line connection to a Git service, with the ref/capability advertisement captured during the handshake. API
grit_lib::transport::GitDaemonConnection struct A live connection to a Git daemon over a duplex TCP socket. API
grit_lib::transport::GitDaemonTransport struct The native git:// daemon transport. API
grit_lib::transport::GitDaemonUrl struct Parsed git://host[:port]/path (path includes the leading /). API
grit_lib::transport::Service enum The Git service a Connection speaks. API
grit_lib::transport::SshCommand enum How the SshTransport invokes ssh. API
grit_lib::transport::SshConnection struct A live connection to a remote Git service over an ssh subprocess. API
grit_lib::transport::SshTransport struct The ssh transport: spawn ssh [opts] git-upload-pack '' and expose the child’s stdio as a Connection. API
grit_lib::transport::SshUrl struct A parsed SSH remote (scp-style host:path, ssh://, or git+ssh://). API
grit_lib::transport::Transport trait A factory that connects to a remote and performs the protocol handshake. API
grit_lib::transport::http module Smart-HTTP Git transport over a pluggable HTTP client. API
grit_lib::transport::http::HttpClient trait The minimal HTTP surface the smart-HTTP transport needs. API
grit_lib::transport::http::SmartHttpTransport struct A smart-HTTP Transport over a pluggable HttpClient. API
grit_lib::transport::stateless_http module Smart-HTTP Connection over stateless POST rounds (upload-pack) or a single POST body (receive-pack). API
grit_lib::transport::stateless_http::StatelessHttpConnection struct A live smart-HTTP connection backed by HttpClient stateless RPC. API
grit_lib::transport_path module Safety checks and path resolution for local transport URLs (matches Git connect.c / path.c). API
grit_lib::transport_path::NoDirectoryName struct Error returned by git_url_basename when no directory name can be derived from a URL. API
grit_lib::transport_path::TransportPathError enum Errors returned while validating local transport paths. API
grit_lib::tree_path_follow module Resolve tree paths with symlink following (get_tree_entry_follow_symlinks). API
grit_lib::tree_path_follow::FollowPathFailure enum Failure modes reported as special git cat-file --batch-check lines. API
grit_lib::tree_path_follow::FollowPathResult enum Result of resolving tree_oid:path with symlink following. API
grit_lib::unicode_normalization module UTF-8 NFC path normalization for macOS-style filesystems (core.precomposeUnicode). API
grit_lib::unicode_normalization::WorktreePathForStaging struct Absolute worktree path and repository-relative index spelling after NFC/NFD resolution. API
grit_lib::unpack_objects module unpack-objects: unpack a pack stream into loose objects. API
grit_lib::unpack_objects::PackIndexRecord struct Resolved (oid, pack_offset) pairs for every object slot in a pack byte stream. API
grit_lib::unpack_objects::UnpackOptions struct Options controlling unpack-objects behaviour. API
grit_lib::untracked_cache module Git index UNTR (untracked cache) — git/dir.c / read-cache.c. API
grit_lib::untracked_cache::OidStat struct Git struct stat_data on disk (36 bytes). API
grit_lib::untracked_cache::UntrackedCache struct Collect untracked paths from a populated untracked cache tree. API
grit_lib::upload_filter module Upload-pack object filter policy. API
grit_lib::upload_filter::UploadFilterError enum Error returned when an upload-pack filter request is not allowed by config. API
grit_lib::url_rewrite module URL rewrite helpers for url..insteadOf / url..pushInsteadOf. API
grit_lib::userdiff module User-defined and built-in diff function-name matching. API
grit_lib::userdiff::FuncnameMatcher struct Compiled function-name matcher used for diff hunk headers. API
grit_lib::whitespace_rule module Git-compatible core.whitespace rules and ws_fix_copy (git/ws.c). API
grit_lib::wildmatch module Git-compatible wildmatch pattern matching. API
grit_lib::worktree module Linked worktree registry: discovery, listing, and admin-dir layout. API
grit_lib::worktree::WorktreeEntry struct One row returned by list_worktrees. API
grit_lib::worktree_cwd module Process current working directory relative to a Git work tree. API
grit_lib::worktree_index module Index and working tree: the index, sparse checkout, attributes, ignore, CRLF. API
grit_lib::worktree_ref module Per-worktree ref name parsing and storage location (Git parse_worktree_ref / files_ref_path). API
grit_lib::worktree_ref::RefWorktreeType enum How a ref name maps to on-disk storage across worktrees. API
grit_lib::worktree_rules module Per-operation worktree attribute and ignore context. API
grit_lib::worktree_rules::WorktreeRules struct Attribute/ignore/conversion state shared across one porcelain operation. API
grit_lib::write_tree module Build tree objects from index entries (git write-tree core logic). API
grit_lib::write_tree::WriteTreeFlags struct Options for cache_tree_update and write_tree_update_index. API
grit_lib::write_tree::WriteTreePersistence enum How cache_tree_update persists rebuilt tree objects. API
grit_lib::ws module Git-compatible whitespace rules (core.whitespace, whitespace attribute). API
grit_lib::ws::WhitespaceGitAttr enum Blank lines at end of file (handled at apply layer, not in ws_check). API