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 and blob-level hunk application. API
grit_lib::apply::ApplyOptions struct Options controlling blob-level hunk application. API
grit_lib::apply::BinaryPatchPayload struct Binary patch payload as compressed base85 chunks for forward/reverse apply. API
grit_lib::apply::BinaryPatchSection struct One forward or reverse chunk in a GIT binary patch. API
grit_lib::apply::BinaryPatchSectionKind enum Whether a GIT binary patch section holds a full literal or a delta against the other side. 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 One line in a unified-diff hunk body. API
grit_lib::apply::IndexApplyOptions struct Options for apply_patch_to_index. API
grit_lib::apply::IndexApplyOutcome struct Result of applying patches to the index. 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::BlameFinalSource enum Which version of the blamed file [blame_file] attributes, line by line. API
grit_lib::blame::BlameHunk struct A contiguous run of blamed lines sharing commit, path, and original line sequence. 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::blame::CopyDetection enum Copy detection depth for blame, matching Git’s repeated -C flag. API
grit_lib::blame::IgnoreRevs struct Commits skipped during blame (Git --ignore-rev / --ignore-revs-file). API
grit_lib::blame::IgnoreRevsSources struct Where to load ignored revisions from (config, CLI files, CLI rev specs). API
grit_lib::bundle module Bundle files and bundle-over-remote transport. API
grit_lib::bundle::Bundle struct An opened bundle file on disk. API
grit_lib::bundle::BundleCreatePlan struct Planned bundle contents without writing a file. 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::BundlePrerequisite struct One prerequisite commit line (-oid) for an incremental bundle. API
grit_lib::bundle::BundleRefEntry struct One ref tip that would appear in a bundle header. API
grit_lib::bundle::BundleRefUpdatePlan struct One ref movement that would occur when applying bundle header tips locally. API
grit_lib::bundle::BundleSpec struct Input for [write_bundle]. API
grit_lib::bundle::BundleUnbundlePlan struct Planned unbundle work: verification outcome and ref updates without ingesting the pack. 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::FilterSpec struct Wire filter specification carried in v3 @filter= capabilities. API
grit_lib::bundle::UnbundleOutcome struct Result of ingesting a bundle’s embedded pack into a repository. API
grit_lib::bundle::UnbundledRef struct A single ref entry returned from Bundle::unbundle. API
grit_lib::bundle::bundle_remote module Revision options for writing bundles from grit bundle create-style arguments. API
grit_lib::bundle::bundle_remote::BundleCreateOptions struct Ref tips and revision tokens for RepositoryBundles::write_from_revs. API
grit_lib::change_id module Change identifiers stored in commit headers. API
grit_lib::change_id::ChangeId struct A change identifier as stored in a commit header (reverse-hex or opaque text). API
grit_lib::change_id::ChangeIdError enum Failure modes for change-id parsing and generation. API
grit_lib::change_id::ChangeIdGenerator trait Injectable source of random change-id bytes. API
grit_lib::change_id::ChangeIdMatch struct A commit whose resolved change id matched a prefix lookup. API
grit_lib::change_id::ChangeIdPolicy struct Repository and testing knobs for assigning change ids to new commits. API
grit_lib::change_id::ResolvedChangeId struct Resolved change id plus whether it came from a stored header. 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 Error 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::CommandRunner trait Discovery and config variables that affect repository open/discover and ConfigSet loading. 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::command_runner::hooks module Git hook execution helpers (legacy free functions; prefer crate::repo_handles::RepositoryHooks). API
grit_lib::command_runner::hooks::CommitHookEnv struct Environment for commit-style hooks (GIT_INDEX_FILE, GIT_EDITOR, GIT_PREFIX, and extra pairs). API
grit_lib::command_runner::hooks::HookError enum Hook subprocess failure (non-zero exit or spawn error). API
grit_lib::command_runner::hooks::HookName enum Well-known lifecycle hooks that porcelain operations run and report in their outcomes (for example crate::porcelain::commit::CommitOutcome::hooks_run). API
grit_lib::command_runner::hooks::HookOutput struct Bytes the hooks of one event wrote while HookStdio::Capture was in effect. API
grit_lib::command_runner::hooks::HookResult enum Result of running the hooks for one event. API
grit_lib::command_runner::hooks::HookStdio enum Where hook subprocesses send their stdout and stderr. API
grit_lib::command_runner::hooks::PostOperationHooks enum Whether an operation runs the hooks Git runs once it has completed (post-checkout, post-merge, post-rewrite). API
grit_lib::command_runner::hooks::PrePushRef struct One ref update a push is about to make, as reported to the pre-push hook. API
grit_lib::command_runner::hooks::RewriteKind enum What kind of rewrite a post-rewrite hook is told about (its first argument). API
grit_lib::command_runner::hooks::RunHookOptions struct Options for [run_hook_opts]. API
grit_lib::commit module Commit-metadata helpers shared by the porcelain commands. API
grit_lib::commit::TrailerArgParseError struct Error when a --trailer argument is not key=value or key: value. API
grit_lib::commit::encoding module Commit encoding helpers for non-UTF-8 commit messages. API
grit_lib::commit::signing module OpenPGP / SSH signature verification. API
grit_lib::commit::signing::GpgConfig struct Resolved signing/verification configuration. API
grit_lib::commit::signing::GpgFormat enum The signature format selected via gpg.format. API
grit_lib::commit::signing::SignatureCheck struct A parsed signature check result. API
grit_lib::commit::signing::TrustLevel enum Signature trust level, as reported for a verified signature. API
grit_lib::commit::trailers module Commit trailers and interpretation helpers. API
grit_lib::commit::trailers::CherryPickMessageOptions struct -x / -s options when finalizing a cherry-pick commit message. API
grit_lib::commit::trailers::interpret module Parse and apply trailer commands. API
grit_lib::commit::trailers::interpret::NewTrailerArg struct One trailer to add (a --trailer argument) and how to place it. API
grit_lib::commit::trailers::interpret::ProcessTrailerOptions struct ProcessTrailerOptions struct. API
grit_lib::commit::trailers::interpret::TrailerIfExists enum TrailerIfExists enum. API
grit_lib::commit::trailers::interpret::TrailerIfMissing enum TrailerIfMissing enum. API
grit_lib::commit::trailers::interpret::TrailerWhere enum Placement of a new trailer relative to an anchor trailer. API
grit_lib::commits module Create and plan commits on a repository (Commits from Repository::commits). API
grit_lib::commits::Commits struct Record and preview commits for one open repository. API
grit_lib::config module Configuration cascade, identity, and repository bootstrap helpers. API
grit_lib::config::Config struct Read merged config and update the repository-local config file. API
grit_lib::config::ConfigEditor struct Edit a config file outside an open Repository (global, system, or -f path). 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::ConfigLocation enum Which config file(s) to read or write. 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::ConfigValueOrigin struct Origin metadata for the winning config value of a key. API
grit_lib::config::ConfigValueType enum Value type for typed config operations (Git --type subset). API
grit_lib::config::ConfigWriteOptions struct Options for a config file write (dry-run, typed canonicalization, unset patterns). API
grit_lib::config::ConfigWritePreview struct Human-readable summary of a config write that --dry-run would perform. 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::IncludeMode enum Whether ConfigSet::merge_file expands [include] / [includeIf] directives. API
grit_lib::config::IncludeOptions struct Options for ConfigSet::merge_file. API
grit_lib::config::LoadConfigOptions struct Options controlling how ConfigSet::load merges files and includes. API
grit_lib::config::TypedConfigValue enum A config value after typed parsing. API
grit_lib::config::dotfile module dotfile API (re-exported at this path). API
grit_lib::config::environment module environment API (re-exported at this path). API
grit_lib::config::environment::ConfigOverride struct One command-line configuration override, the key[=value] argument of git -c. API
grit_lib::config::environment::Environment struct Discovery and config variables that affect repository open/discover and ConfigSet loading. API
grit_lib::config::environment::RepositoryOptions struct Options passed to crate::repo::Repository::open, crate::repo::Repository::discover, and related entry points. API
grit_lib::config::git_date module git_date API (re-exported at this path). API
grit_lib::config::git_date::DateMode struct How show_date formats a timestamp (Git’s --date=). API
grit_lib::config::git_date::DateModeType enum DateModeType enum. API
grit_lib::config::git_date::DateSpecError enum Failure to interpret a Git-style date cutoff string (for example --since / --until). API
grit_lib::config::git_date::approx module Git-compatible approxidate parsing. API
grit_lib::config::git_path module git_path API (re-exported at this path). API
grit_lib::config::git_path::GitPathError enum Errors returned by Git-compatible path helper routines. API
grit_lib::config::gitmodules module gitmodules API (re-exported at this path). API
grit_lib::config::gitmodules::DotFsckIssue enum Problems reported while walking trees / blobs for .gitmodules / .gitattributes fsck. API
grit_lib::config::gitmodules::gitdir module Submodule .git file resolution. API
grit_lib::config::ident_resolve module ident_resolve API (re-exported at this path). API
grit_lib::config::ident_resolve::IdentRole enum Author vs committer for GIT_* / author.* / committer.* lookup. API
grit_lib::config::ident_resolve::IdentityEnv trait Environment access used for identity resolution. API
grit_lib::config::ident_resolve::IdentityError enum Errors returned by strict identity resolution. API
grit_lib::config::init_filesystem module init_filesystem API (re-exported at this path). API
grit_lib::config::init_filesystem::FilesystemCapabilities struct Platform limits Git records as core.* during init. API
grit_lib::config::init_filesystem::FilesystemCapabilitiesError enum Failure while detecting filesystem capabilities under a git directory. API
grit_lib::config::init_filesystem::InitFilesystemConfigOptions struct Controls when init-time filesystem capability detection may write local config. API
grit_lib::config::init_filesystem::PrecomposeDetection enum When init may run the NFD→NFC precompose capability check. API
grit_lib::config::mailmap module mailmap API (re-exported at this path). API
grit_lib::config::mailmap::MailmapEntry struct Legacy line-shaped entry kept for API compatibility; prefer MailmapTable. API
grit_lib::config::mailmap::MailmapTable struct Parsed mailmap as a lookup table (Git string_list + nested namemap). API
grit_lib::config::precompose_config module precompose_config API (re-exported at this path). 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 Tree and content diffs, rename detection, merge diffs, and related helpers. API
grit_lib::diff::AnnotatedStructuredHunk struct One structured hunk optionally decorated with a stable HunkId. API
grit_lib::diff::BreakRewrites enum Break-rewrite policy (Git -B): split a heavily rewritten modification into a deletion and an addition so rename and copy detection can pair its halves. API
grit_lib::diff::CommitFilesManyInput struct One commit’s identity for Diff::commit_files_many_work, avoiding a second ODB read. API
grit_lib::diff::CommitFilesManyOptions struct Options for Diff::commit_files_many. API
grit_lib::diff::CommitFilesResult struct One commit’s diff output in Diff::commit_files_many (same order as input oids). API
grit_lib::diff::CopyDetection enum Copy detection policy for tree, index and work-tree diffs (Git -C). API
grit_lib::diff::Diff struct Compare trees, the index, and the working tree for one repository. API
grit_lib::diff::DiffAlgorithm enum Line diff algorithm names matching Git’s diff.algorithm and --diff-algorithm. API
grit_lib::diff::DiffArguments struct Resolved diff mode and normalized pathspecs. API
grit_lib::diff::DiffDetail enum How much content to compute for each changed file. API
grit_lib::diff::DiffEntriesResult struct Changed paths from a Diff metadata diff, after any rename, copy or break pairing, with what the diff noticed along the way. API
grit_lib::diff::DiffEntry struct A single diff entry representing one changed path. API
grit_lib::diff::DiffFilesOutput struct Output of Diff::files_for_entries. API
grit_lib::diff::DiffFilter struct Typed include/exclude set for DiffStatus using Git’s letter syntax. API
grit_lib::diff::DiffLabel enum One side’s --- / +++ header label in UnifiedDiffOptions. API
grit_lib::diff::DiffMerges enum How to diff a merge commit’s tree against its parents. API
grit_lib::diff::DiffOptions struct Line-diff options shared by structured output, log patches, and benchmarks. API
grit_lib::diff::DiffRequest struct Unparsed grit diff flags and operands, as the user typed them. API
grit_lib::diff::DiffSide enum Which tree/index/worktree sides a hunk was produced from. API
grit_lib::diff::DiffStat struct Per-file line counts plus totals for a whole diff. API
grit_lib::diff::DiffStatus enum The kind of change between two sides of a diff. API
grit_lib::diff::DiffTarget enum What to compare when producing a structured file diff list. API
grit_lib::diff::DiffTotals struct Summary across all files in a stat-style diff. API
grit_lib::diff::FileChange struct One changed path with both sides’ bytes loaded for diffing. API
grit_lib::diff::FileDiff struct One changed file with structured hunks and metadata (returned by Diff::files). API
grit_lib::diff::FileStat struct One file’s row in a DiffStat. API
grit_lib::diff::HunkDiffBundle struct Staged and unstaged file diffs for hunk id assignment (one staged scan per call). API
grit_lib::diff::HunkExtent enum How far each hunk reaches beyond its changed lines. API
grit_lib::diff::HunkId struct Twelve lowercase hex characters identifying one structured hunk within a side and path. API
grit_lib::diff::HunkIdError enum Parse or format failure for HunkId. API
grit_lib::diff::IndentHeuristic enum Git’s indent heuristic for placing a change whose boundaries are ambiguous. API
grit_lib::diff::IndentHeuristicOverride enum CLI override for diff.indentHeuristic when building DiffOptions. API
grit_lib::diff::InexactRenameDetectionSkipped struct Emitted when unmatched rename candidates exceed diff.renameLimit after exact and basename pairing. API
grit_lib::diff::InvalidDiffFilter enum Unknown or unsupported --diff-filter letter. API
grit_lib::diff::LineStat struct Line insertion/deletion counts for one file (--numstat). API
grit_lib::diff::ListedFileDiff struct One changed file with optional patch body or line counts (returned by Diff::files_for_entries). API
grit_lib::diff::LogPatchBinaryFormat enum Binary file encoding inside a log/show patch (git log -p vs git diff --binary). API
grit_lib::diff::LogPatchCommitHeader enum How much commit metadata precedes each patch in write_commit_log_patch. API
grit_lib::diff::LogPatchOptions struct Options for write_commit_log_patch. API
grit_lib::diff::NoIndexError enum Failure modes specific to diff_paths. API
grit_lib::diff::NoNewlineMarker enum Whether patches carry Git’s \ No newline at end of file marker lines. API
grit_lib::diff::PatchResolvedSide struct One file for write_patch_resolved: diff metadata plus where each side’s content is. API
grit_lib::diff::PatchSide enum Where write_patch_resolved takes the content of one side of a file. API
grit_lib::diff::PatchTextOptions struct Options for write_patch (git diff --binary-compatible output for git apply). API
grit_lib::diff::PathQuoting enum How DiffLabel::Path labels quote unusual path bytes (Git’s core.quotePath). API
grit_lib::diff::Pickaxe struct Compiled pickaxe filter for [crate::rev_list::rev_list]. API
grit_lib::diff::Pickaxe struct Commit message and identity filters for revision walks (--author, --grep, …). API
grit_lib::diff::PickaxeError enum Invalid pickaxe pattern. API
grit_lib::diff::PickaxeKind enum Which pickaxe mode is active (-S or -G). API
grit_lib::diff::RenameDetection enum Rename detection policy for tree diffs. API
grit_lib::diff::ResolveDiffArgumentsError enum Invalid grit diff argument combinations or revision parsing failures. API
grit_lib::diff::StatBar struct Column counts for one diffstat row’s change bar (see LineStat::bar). API
grit_lib::diff::SubmoduleIgnoreMode enum Submodule ignore mode for worktree gitlink comparisons (Git --ignore-submodules, diff.ignoreSubmodules, submodule..ignore). API
grit_lib::diff::TreeDiffOptions struct Options shared by the metadata diffs on Diff: Diff::tree_to_tree, Diff::commits, Diff::index_to_tree, Diff::index_to_worktree, Diff::tree_to_worktree and Diff::detect_renames. API
grit_lib::diff::TreeDiffStructured struct Tree diff entry with structured line hunks ready for CLI rendering. API
grit_lib::diff::UncommittedDiff struct Staged, unstaged, and working-tree diffs over one loaded index. API
grit_lib::diff::UnifiedDiffOptions struct Everything that shapes a unified diff of two text sides. API
grit_lib::diff::UnknownDiffAlgorithm struct Unknown value for DiffAlgorithm’s FromStr implementation. API
grit_lib::diff::WhitespaceMode struct Whitespace handling for line diffs (super::DiffOptions::whitespace). API
grit_lib::diff::combined_diff_patch module combined_diff_patch API (re-exported at this path). API
grit_lib::diff::combined_diff_patch::CombinedDiffWsOptions struct Whitespace handling for combined diffs (Git xdl_opts subset). API
grit_lib::diff::combined_diff_patch::CombinedStructuredHunk struct A combined hunk (@@@ header and body lines). API
grit_lib::diff::combined_diff_patch::CombinedStructuredLine struct One line in a combined (--cc) hunk: parent-column markers plus text. API
grit_lib::diff::combined_diff_patch::CombinedStructuredLineKind enum Line role in a combined (--cc) hunk (derived from parent-column markers). API
grit_lib::diff::combined_diff_patch::CombinedStructuredTextDiff struct Structured combined diff body (no diff --cc file header). API
grit_lib::diff::combined_tree_diff module Combined tree diff helpers for merge commits. API
grit_lib::diff::combined_tree_diff::CombinedDiffPath struct One path in a combined diff: merge result tree vs each parent tree. API
grit_lib::diff::combined_tree_diff::CombinedParentSide struct One parent’s contribution at a combined-diff path. API
grit_lib::diff::combined_tree_diff::CombinedParentStatus enum Per-parent coarse status in a combined diff (A / M / D). API
grit_lib::diff::combined_tree_diff::CombinedRawLineFormatOptions struct Formatting switches for format_combined_raw_line_all_paths_with_options. API
grit_lib::diff::combined_tree_diff::CombinedTreeDiffOptions struct Options for the multitree walk. API
grit_lib::diff::fmt_merge_msg module Merge commit message formatting from FETCH_HEAD-style input. API
grit_lib::diff::fmt_merge_msg::FmtMergeMsgOptions struct Options for fmt_merge_msg. API
grit_lib::diff::merge_diff module Combined diff content for octopus merges. API
grit_lib::diff::merge_file module merge_file API (re-exported at this path). API
grit_lib::diff::merge_file::ConflictStyle enum Conflict-marker output style. API
grit_lib::diff::merge_file::MergeFavor enum How conflict regions should be resolved. API
grit_lib::diff::merge_file::MergeInput struct Input and options for a three-way merge. API
grit_lib::diff::merge_file::MergeOutput struct Result of a three-way merge. API
grit_lib::diff::merge_trees module Tree-level three-way merge engine. API
grit_lib::diff::patch_ids module patch_ids API (re-exported at this path). API
grit_lib::diff::patch_ids::PatchIdMode enum How to compute a patch-ID from unified diff text. API
grit_lib::diff::rerere module Recorded conflict resolution (rerere). API
grit_lib::diff::rerere::RerereAutoupdate enum Effective rerere.autoupdate setting for a repository. API
grit_lib::diff::rerere::RerereEvent struct One rerere status event for a path. API
grit_lib::diff::rerere::RerereEventKind enum Outcome of rerere handling one path (replaces stderr status lines). API
grit_lib::diff::structured module Structured line diffs for CLI and embedders (grit diff, grit show). API
grit_lib::diff::structured::SideBytes struct Bytes of one file side prepared for diffing. API
grit_lib::diff::structured::StructuredFileDiff struct File metadata plus a structured line diff. API
grit_lib::diff::structured::StructuredHunk struct A contiguous run of changes plus surrounding context. API
grit_lib::diff::structured::StructuredLine struct One rendered line in a structured hunk. API
grit_lib::diff::structured::StructuredLineKind enum Kind of line in a structured hunk. API
grit_lib::diff::structured::StructuredSegment struct One run of text within a line, with optional intra-line emphasis. API
grit_lib::diff::structured::StructuredTextDiff struct Line-level diff of two text sides (no file metadata). API
grit_lib::diff::userdiff module Per-path diff driver (funcname) matching. API
grit_lib::diff::userdiff::FuncnameMatcher struct Compiled function-name matcher used for diff hunk headers. API
grit_lib::diff::userdiff::FuncnamePatternError enum Why a diff..funcname / diff..xfuncname pattern was rejected. API
grit_lib::diff::ws module ASCII whitespace helpers used by the diff engine. API
grit_lib::divergence module What happened when two heads of one shared branch diverged. API
grit_lib::divergence::Change struct One commit, as both sides have it. API
grit_lib::divergence::Choice enum A way of putting two diverged heads back together. API
grit_lib::divergence::Combined struct What putting two heads together made. API
grit_lib::divergence::Did enum What one side did to one commit since the base. API
grit_lib::divergence::Divergence struct Two diverged heads, explained. API
grit_lib::divergence::Keyed struct One commit of a head, by the key it’s matched on. API
grit_lib::divergence::ReplayOntoOutcome enum Outcome of RevWalk::replay_onto: either a new tip commit or a conflict list with repository paths. API
grit_lib::divergence::ResolveOption struct One way out of a divergence, as offered for its scenario. API
grit_lib::divergence::Scenario enum What two diverged heads add up to. API
grit_lib::error module Shared error types for grit-lib. API
grit_lib::error::ApplyError enum Unified diff / patch application errors. API
grit_lib::error::AttrPathspecError enum Why a :(attr:...) pathspec clause was rejected. API
grit_lib::error::AuthFailure enum Why an HTTP remote refused access (RemoteError::Auth). API
grit_lib::error::BadNumericSource enum Why a Git config numeric value was rejected (git config int strict parsing). API
grit_lib::error::BinaryPatchError enum Why a GIT binary patch section could not be read or applied (ApplyError::BinaryPatch). API
grit_lib::error::ConfigError enum Configuration parse and validation failures. API
grit_lib::error::ConfigValueError enum Why a raw config value could not be read as a boolean, integer or color. API
grit_lib::error::DiffError enum Diff-area failure: applying patches, selecting hunks by id, and blame inputs. API
grit_lib::error::Error enum The top-level error type for all grit-lib operations. API
grit_lib::error::ErrorSummary struct Classification and text of a failure recorded inside another error. 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::GitDirPathOperation enum Git-directory filesystem operation that failed on a single path. API
grit_lib::error::InvalidKeyReason enum Which part of a config key ConfigError::InvalidKey rejected. API
grit_lib::error::LockHeldError struct Lock file could not be created because another process holds it (or left a stale lock). API
grit_lib::error::MidxError enum A fatal multi-pack-index condition (Git die() after error: lines). API
grit_lib::error::NotARepositoryReason enum Why a path could not be opened as a Git repository; carried by RepositoryError::NotARepository. API
grit_lib::error::NotesError enum Notes failure: notes refs, the notes tree layout, rewrite configuration, and notes merges. API
grit_lib::error::ObjectError enum Object database failure: loose objects, packs, indexes, commit-graph, multi-pack-index, and promisor (partial clone) objects. API
grit_lib::error::ObjectReadFailure enum Failure decoding object bytes from loose storage or a pack entry. API
grit_lib::error::OverwriteReason enum Why a tree transition would overwrite existing worktree content. API
grit_lib::error::PatchSide enum Side of a patch a header path belongs to (ApplyError::MalformedHeaderPath). API
grit_lib::error::PathIoError struct Structured path I/O failure shared by worktree and git-directory operations. API
grit_lib::error::PathIoOperation enum Which filesystem area a PathIoError refers to. API
grit_lib::error::PathOutsideRepoError enum Path outside the repository during pathspec or transport resolution. API
grit_lib::error::PathspecFromFileParseError enum --pathspec-from-file / --pathspec-file-nul parse failure. API
grit_lib::error::PathspecFromFileParseError enum Parsed and optionally work-tree–resolved pathspec list for matching and display. API
grit_lib::error::PathspecResolveError enum Failure while resolving argv and --pathspec-from-file pathspecs against a work tree. API
grit_lib::error::PromisorFetchFailure struct One promisor remote’s failure inside ObjectError::PromisorFetchFailed. API
grit_lib::error::RefError enum Reference failure: ref names and values, packed-refs, ref locks, ref stores (files and reftable), reflog selectors, and the state of HEAD. API
grit_lib::error::RefLockError enum Reference lock failures while creating or updating a ref. API
grit_lib::error::RemoteUnreadableReason enum Why a remote could not be read or written (RemoteError::Unreadable). API
grit_lib::error::RevisionError enum Revision failure: a name that resolves to nothing, a revision expression that does not parse, or a revision walk whose options are invalid. API
grit_lib::error::SubmoduleError enum Submodule layout and state failures: where a submodule’s git directory lives and whether its checkout can be inspected. API
grit_lib::error::WorktreeOperation enum The command a dirty worktree blocked (WorktreeError::DirtyWorktree). API
grit_lib::error::WorktreePathOperation enum Worktree filesystem operation that failed on a single path. API
grit_lib::gitbutler module Recognize a GitButler workspace. API
grit_lib::gitbutler::GitButlerWorkspace struct A checked-out GitButler workspace: HEAD is on WORKSPACE_BRANCH and its tip is the workspace commit (WORKSPACE_COMMIT_MARKER in its message). API
grit_lib::gitbutler::WorkspaceHead struct One head merged into a GitButlerWorkspace. API
grit_lib::gitbutler::WorkspaceStanding struct A GitButlerWorkspace’s standing against the target branch, from GitButlerWorkspace::standing. API
grit_lib::ident module Git author/committer identity lines (ident in Git’s fsck.c / commit.c). API
grit_lib::ident::AuthorArgError enum Failure to parse parse_author_arg. API
grit_lib::ident::AuthorContact struct Name and email from a git commit --author-style argument (Name or bare email). API
grit_lib::ident::CommitIdentityError enum Failure to normalize a commit author or committer string. API
grit_lib::ident::Signature struct Parsed author or committer identity from a full header or reflog identity line. API
grit_lib::ident::SignatureError enum Why a Signature cannot be written into an object (see Signature::validate). API
grit_lib::ident::SignatureField enum Which part of a Signature a SignatureError refers to. API
grit_lib::ident::SignatureTimestamp enum Parsed timestamp from a signature line for display and filtering. API
grit_lib::index module Git index (staging area) read/write and related cache extensions. 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 (staging area). API
grit_lib::index::IndexEntry struct A single entry in the Git index. API
grit_lib::index::IndexFile struct Load and persist the Git index for one repository. API
grit_lib::index::IndexLoadOptions struct Options for IndexFile::load. API
grit_lib::index::IndexLock struct Exclusive .git/index.lock held for a mutating porcelain operation. API
grit_lib::index::IndexParseContext struct Context for index parse/load threading and config. API
grit_lib::index::IndexParseOptions struct Options for Index::parse. API
grit_lib::index::IndexWriteOptions struct Options for IndexFile::write. API
grit_lib::index::SparseIndexLoad enum How IndexFile::load treats sparse-directory placeholders. API
grit_lib::index::StatMatchPolicy struct Git match_stat_data policy (core.trustctime, core.checkstat, core.usenanosec). API
grit_lib::index::WorktreeModePolicy struct What the worktree filesystem can express about a tracked path’s mode. API
grit_lib::index::error module Typed failures for index read, write, extensions, and write-tree. API
grit_lib::index::error::IndexChmodReason enum Why IndexError::Chmod rejected a mode change. API
grit_lib::index::error::IndexChmodReason enum Typed failures for index read, write, extensions, and write-tree. API
grit_lib::index::error::IndexCorrupt struct Index file or extension corruption at an optional byte offset. API
grit_lib::index::error::IndexCorruptReason enum Why index bytes or an extension payload could not be parsed. API
grit_lib::index::error::IndexError enum Failures while reading, writing, or deriving trees from the Git index. API
grit_lib::index::index_name_hash_lazy module index_name_hash_lazy API (re-exported at this path). API
grit_lib::index::resolve_undo module resolve_undo API (re-exported at this path). API
grit_lib::index::resolve_undo::ResolveUndoRecord struct Per-path undo data: up to three conflict stages (index 0 = stage 1). API
grit_lib::index::sparse_checkout module sparse_checkout API (re-exported at this path). API
grit_lib::index::sparse_checkout::SparseCheckout struct The active sparse-checkout definition of a repository, compiled once for path checks. API
grit_lib::index::split_index module split_index API (re-exported at this path). API
grit_lib::index::split_index::WriteSplitIndexRequest struct Request from update-index for the next index write. API
grit_lib::index::untracked_cache module untracked_cache API (re-exported at this path). API
grit_lib::index::untracked_cache::OidStat struct OidStat struct. API
grit_lib::index::untracked_cache::StatDataDisk struct Git struct stat_data on disk (36 bytes). API
grit_lib::index::untracked_cache::UntrackedCache struct UntrackedCache struct. API
grit_lib::index::untracked_cache::UntrackedCacheDir struct UntrackedCacheDir struct. API
grit_lib::index::untracked_cache::UntrackedIgnoredMode enum UntrackedIgnoredMode enum. API
grit_lib::index::write_tree module write_tree API (re-exported at this path). API
grit_lib::index::write_tree::WriteTreeFlags struct Options for cache_tree_update and write_tree_update_index. API
grit_lib::index::write_tree::WriteTreePersistence enum How cache_tree_update persists rebuilt tree objects. API
grit_lib::line_range module Resolve Git-style -L line ranges for blame (and future log -L). API
grit_lib::line_range::LineRangeError enum Failure while parsing or resolving a -L line range specification. API
grit_lib::list_limit module Bounded list results shared by notes, hooks, bundle heads, and CLI list commands. API
grit_lib::list_limit::Limited struct A list capped by an optional limit, with truncation when more items existed. API
grit_lib::lockfile module Exclusive lock files with optional Git-style acquisition backoff. API
grit_lib::lockfile::LockClock trait Injectable clock and sleep for deterministic lock backoff tests. API
grit_lib::lockfile::LockError enum Failure to create or commit a lock file. API
grit_lib::lockfile::LockFile struct Exclusive lock file created by this process. API
grit_lib::lockfile::LockHolder struct Process recorded as the owner of a lock file. API
grit_lib::lockfile::LockJitter trait Injectable jitter so concurrent processes do not sleep in lockstep. API
grit_lib::lockfile::LockWait enum Whether to wait for an existing lock, and for how long. API
grit_lib::lockfile::SystemLockJitter struct OS random bytes for cross-process jitter (Git-style lock backoff). API
grit_lib::maintenance module Repository maintenance: repack, fsck, and garbage collection orchestration. API
grit_lib::maintenance::AutoGcOutcome enum Result of Maintenance::gc_auto. API
grit_lib::maintenance::AutoGcReason enum Why automatic maintenance is due, as decided by Maintenance::auto_gc_needed. API
grit_lib::maintenance::BuiltCommitGraph struct A commit-graph file built in memory by Maintenance::build_commit_graph. API
grit_lib::maintenance::CommitGraphBuild enum Outcome of Maintenance::build_commit_graph. API
grit_lib::maintenance::CommitGraphOptions struct Options for Maintenance::write_commit_graph. API
grit_lib::maintenance::CommitGraphSkipReason enum Why Maintenance::write_commit_graph wrote no graph. API
grit_lib::maintenance::CommitGraphWriteReport struct Result of writing objects/info/commit-graph. API
grit_lib::maintenance::DropExpiry enum How long recently needed blobs are kept: the value of maintenance.drop-large-blobs.expire, or of a command line’s --older-than. API
grit_lib::maintenance::DropPromisedBlobsOptions struct Options for Maintenance::drop_promised_blobs. API
grit_lib::maintenance::DropPromisedBlobsReport struct What Maintenance::drop_promised_blobs did, or with DropPromisedBlobsOptions::dry_run would do. API
grit_lib::maintenance::DropPromisedBlobsSkip enum Why gc did not run its drop phase (DropPromisedBlobsReport::skipped). API
grit_lib::maintenance::DroppedBlob struct One blob Maintenance::drop_promised_blobs dropped (or, on a dry run, would drop). API
grit_lib::maintenance::GcLock struct Repository-wide maintenance lock, compatible with Git’s gc.pid. API
grit_lib::maintenance::GcLockAttempt enum Outcome of Maintenance::try_lock. API
grit_lib::maintenance::GcLockHolder struct Process recorded in gc.pid by a maintenance run that is still in progress. API
grit_lib::maintenance::GcOptions struct Options for Maintenance::gc. API
grit_lib::maintenance::GcPhaseReport enum One maintenance phase from a full Maintenance::gc run. API
grit_lib::maintenance::GcPhaseTimings struct Wall-clock milliseconds for each phase of Maintenance::gc. API
grit_lib::maintenance::GcStats struct Result of Maintenance::gc. API
grit_lib::maintenance::KeptBlobCounts struct Why candidate blobs stayed. API
grit_lib::maintenance::LopReadiness struct Whether a LOP can answer the lazy fetches of Git clients. API
grit_lib::maintenance::Maintenance struct Garbage collection, repacking, commit-graph and MIDX writes, fsck and the gc.pid lock for one repository. API
grit_lib::maintenance::MidxOptions struct Options for Maintenance::write_midx. API
grit_lib::maintenance::MidxWriteReport struct Result of writing objects/pack/multi-pack-index. API
grit_lib::maintenance::OffloadConfigChange struct One config value Maintenance::offload_blobs set. API
grit_lib::maintenance::OffloadError enum Why Maintenance::offload_blobs refused to run. API
grit_lib::maintenance::OffloadOptions struct Options for Maintenance::offload_blobs. API
grit_lib::maintenance::OffloadPack struct A pack Maintenance::offload_blobs wrote. API
grit_lib::maintenance::OffloadPackRole enum Which of the packs Maintenance::offload_blobs writes an OffloadPack is. API
grit_lib::maintenance::OffloadRepo enum Which repository a OffloadConfigChange was made in. API
grit_lib::maintenance::OffloadReport struct What Maintenance::offload_blobs did (or, with OffloadOptions::dry_run, would do). API
grit_lib::maintenance::PackRefsOptions struct Options for References::pack. API
grit_lib::maintenance::PackRefsReport struct Result of packing refs (files packed-refs or reftable compaction). API
grit_lib::maintenance::PruneOptions struct Options for Maintenance::prune_loose_objects. API
grit_lib::maintenance::RepackOptions struct Options for Maintenance::repack_all. API
grit_lib::maintenance::RepackReport struct Counters produced by Maintenance::repack. API
grit_lib::maintenance::RepackStats struct Extended counters and paths produced by Maintenance::repack_all. API
grit_lib::maintenance::fsck module Standalone object fsck helpers (single-object checks). API
grit_lib::maintenance::fsck::FsckError struct Git-compatible fsck failure for loose object validation. API
grit_lib::maintenance::fsck::FsckMsgLevel enum How one fsck message is treated during a transfer. API
grit_lib::maintenance::fsck::FsckObjectOptions struct Repository hash width for object-id fields in commit, tag, and tree headers. API
grit_lib::maintenance::fsck::ObjectFsckChecker struct An ObjectFsckPolicy with its skip list loaded, ready to check objects. API
grit_lib::maintenance::fsck::ObjectFsckPolicy struct Which object problems refuse a transfer. API
grit_lib::maintenance::fsck::SkipListError enum Why a skip list could not be loaded. API
grit_lib::maintenance::repository_fsck module Repository-wide fsck (object store, connectivity, refs). API
grit_lib::maintenance::repository_fsck::FsckDiagnostic struct A repository finding with its severity and listing visibility resolved. API
grit_lib::maintenance::repository_fsck::FsckIssue enum One repository fsck finding with a stable, typed shape. API
grit_lib::maintenance::repository_fsck::FsckOptions struct Controls which fsck phases run and how strictly diagnostics are treated. API
grit_lib::maintenance::repository_fsck::FsckReport struct Aggregate fsck outcome. API
grit_lib::maintenance::repository_fsck::FsckSeverity enum Severity for reporting and exit status. API
grit_lib::maintenance::repository_fsck::FsckSummary struct Classified findings and aggregate integrity status. API
grit_lib::maintenance::repository_fsck::MissingObjectReferrer enum Where a missing-object diagnostic was discovered. API
grit_lib::merge module Merge, pick, revert, replay and rerere for one Repository. API
grit_lib::merge::BranchIntegrateRequest struct Integrate into an explicit branch tip (for example during pull). API
grit_lib::merge::Merge struct Merge, pick, revert, replay and merge --continue / --abort for one repository. API
grit_lib::merge::MergeError enum Merge, replay, and in-progress operation failures. API
grit_lib::merge::MergeRerere struct Recorded conflict resolution (rerere) for one repository. API
grit_lib::merge::RerereAutoupdate enum Effective rerere.autoupdate setting for a repository. API
grit_lib::merge::RerereEvent struct One rerere status event for a path. API
grit_lib::merge::RerereEventKind enum Outcome of rerere handling one path (replaces stderr status lines). API
grit_lib::merge::merge_diff module Combined diff content for merge commits. API
grit_lib::merge::merge_diff::CombinedDiffFormat enum Header word of a combined diff: diff --combined (-c) or diff --cc. API
grit_lib::merge::merge_diff::CombinedPatchOptions struct How format_combined_textconv_patch renders one merge path. API
grit_lib::merge::merge_diff::CombinedPathLabels enum Which paths the --- lines of a combined patch name. API
grit_lib::merge::merge_diff::ConflictStages struct Index stages of one conflicted path: base (stage 1), ours (stage 2) and theirs (stage 3). API
grit_lib::merge::merge_diff::Textconv enum Whether a path’s diff..textconv filter runs before its contents are diffed. API
grit_lib::merge::merge_file module Single-file three-way merge. API
grit_lib::merge::merge_file::ConflictStyle enum Conflict-marker output style. API
grit_lib::merge::merge_file::MergeFavor enum How conflict regions should be resolved. API
grit_lib::merge::merge_file::MergeInput struct Input and options for a three-way merge. API
grit_lib::merge::merge_file::MergeOutput struct Result of a three-way merge. API
grit_lib::merge::merge_trees module Tree-level three-way merge engine. API
grit_lib::merge::merge_trees::DirectoryRenameConflict enum A directory rename that a merge could not settle on its own. API
grit_lib::merge::merge_trees::DirectoryRenameMode enum How a three-way merge treats files one side adds inside a directory the other side renamed. API
grit_lib::merge::merge_trees::MergeSide enum One side of a three-way merge. API
grit_lib::merge::merge_trees::RenameRenameConflict struct One base path that each side of a merge renamed to a different destination. API
grit_lib::merge::merge_trees::TheirsConflictLabel enum How to label the “theirs” side in textual conflict markers. API
grit_lib::merge::merge_trees::TreeMergeConflictPresentation struct Labels and marker style for conflict output during tree merges. API
grit_lib::merge::merge_trees::TreeMergeOutput struct Result of merging three trees with optional conflict-marker blobs for checkout. API
grit_lib::merge::merge_trees::WhitespaceMergeOptions struct WhitespaceMergeOptions struct. API
grit_lib::notes module Git notes refs and note commit helpers. API
grit_lib::notes::NotesMergeStrategy enum How to combine conflicting note blobs during a notes merge. API
grit_lib::notes::NotesRef struct Full ref name for a Git notes namespace (refs/notes/…). API
grit_lib::notes::NotesRewriteCommand enum History command that may copy notes onto rewritten commits. API
grit_lib::notes::NotesRewriteMode enum How to combine note blobs when several rewritten commits map onto one target. API
grit_lib::notes::NotesRewritePlan struct Resolved settings for a notes copy during a rewrite (refs, mode, commit message). API
grit_lib::notes::NotesTreeEntry struct One leaf entry in a notes fanout tree (blob pointing at a note object). API
grit_lib::objects module Git objects: ids, kinds, in-memory representations, and the object database stack. API
grit_lib::objects::CommitData struct Parsed representation of a commit object. API
grit_lib::objects::CommitRef struct Parsed commit headers and message body borrowing from the object bytes. API
grit_lib::objects::FileMode struct A Git file mode (100644, 100755, 120000, 160000, 040000), or FileMode::ABSENT for the missing side of an add or delete. 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::NewCommit struct A commit to create with Objects::write_commit. 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::ObjectIdPrefix struct A parsed abbreviated object id: the leading hex digits (“nibbles”) of a 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::ObjectRef struct Borrowed view of an object’s kind and uncompressed payload. API
grit_lib::objects::Objects struct Read and write Git objects through a Repository handle. API
grit_lib::objects::OidBuildHasher struct Build hasher for OidHashMap and OidHashSet. API
grit_lib::objects::OidHasher struct Hasher state for OID-keyed maps. 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::objects::TreeEntryError enum Why Objects::write_tree refused an entry. API
grit_lib::objects::TreeEntryRef struct A single tree entry borrowing name bytes from the tree object payload. API
grit_lib::objects::TreeRefIter struct Iterator over tree entries borrowing from the tree object’s raw payload. API
grit_lib::objects::WriteTreeOptions struct Options for Objects::write_tree_with. API
grit_lib::objects::bitmap module Pack and commit reachability bitmaps. API
grit_lib::objects::bitmap::BitmapError enum Failure mode when a .bitmap sidecar cannot be used. API
grit_lib::objects::bitmap::BitmapIndex struct Memory-mapped pack or MIDX reachability bitmap (Git BITM v1). API
grit_lib::objects::bitmap::BitmapWalkError enum Bitmap-specific failures during a reachability walk; object and ref failures are reported in their own areas. API
grit_lib::objects::bitmap::BitmapWalkUnsupported struct Bitmap walk could not run (unsupported filter or shallow repo); use a non-bitmap walk instead. API
grit_lib::objects::bitmap::CommitReachabilityBitmap struct Decoded reachability set for one commit (bits index pack/MIDX object positions). API
grit_lib::objects::bitmap::PackBitmapWriteError enum Failure while writing a pack reachability bitmap. API
grit_lib::objects::bitmap::PackBitmapWriteOptions struct Options controlling pack bitmap generation (caller-supplied; not read from the environment). API
grit_lib::objects::bitmap::PackBitmapWriter struct Writes .bitmap sidecars for pack indexes produced by all-into-one repacks. API
grit_lib::objects::bitmap::ReachabilityQuery struct Query parameters for a bitmap reachability walk. API
grit_lib::objects::bitmap::ReachableSet struct Reachable objects from a ReachabilityQuery: in-index bits plus out-of-namespace oids. API
grit_lib::objects::bitmap::TypeBitmap struct Borrowed type filter bitmap (commits, trees, blobs, or tags). API
grit_lib::objects::commit_graph module Commit-graph files for reachability and generation numbers. API
grit_lib::objects::delta_encode module Delta compression encoding for pack streams. API
grit_lib::objects::delta_encode::DeltaIndex struct Rolling-hash index over a base buffer for reuse when encoding many targets. API
grit_lib::objects::hash module Object-id hashing, file checksums, and hash algorithm selection. API
grit_lib::objects::hash::Backend enum Which implementation the sha1 / sha2 dependency selects for algo on this CPU. API
grit_lib::objects::hash::HashingWriter struct A writer that forwards bytes to an inner sink while accumulating a checksum. API
grit_lib::objects::hash::ObjectHasher struct Incremental hasher for Git’s supported object-id algorithms. API
grit_lib::objects::index_pack module Index-pack and thin-pack handling. API
grit_lib::objects::index_pack::IngestPackOptions struct Options controlling how a received pack is ingested. API
grit_lib::objects::index_pack::IngestedPack struct Result of ingesting a received pack into an object database. API
grit_lib::objects::index_pack::ObjectKindCounts struct Per-type object counts for a pack, tallied while it is indexed. API
grit_lib::objects::midx module Multi-pack-index (MIDX) read and write. API
grit_lib::objects::midx::MidxBitmapWriteOutcome enum Outcome of an optional MIDX reachability bitmap write. API
grit_lib::objects::midx::WriteMultiPackIndexOptions struct Options for writing a multi-pack index (extension of the simple writer). API
grit_lib::objects::odb module Object database backends and loose/packed storage. API
grit_lib::objects::odb::ObjectStore trait Read-only object storage: lookup, metadata, streaming, and enumeration. API
grit_lib::objects::odb::ObjectStream struct Streaming handle for a single object’s uncompressed payload. API
grit_lib::objects::odb::Odb struct A loose-object database rooted at a given objects/ directory. API
grit_lib::objects::odb::OdbBuilder struct Read layers, an attached commit-graph and the alternates switch for a repository’s object database. API
grit_lib::objects::odb::WritableObjectStore trait Object storage that supports inserting new objects. API
grit_lib::objects::odb::WriteOptions struct Options for Odb::write_with and WritableObjectStore::write. API
grit_lib::objects::odb::store module Pluggable object storage backends and the ObjectStore trait surface. API
grit_lib::objects::odb::store::CompositeStore struct Read-only store that consults an ordered list of backends. API
grit_lib::objects::odb::store::FilesSource struct Read/write object storage backed by one objects/ directory tree. API
grit_lib::objects::odb::store::FilesSourceOpenOptions struct MIDX-related switches when opening a FilesSource. API
grit_lib::objects::odb::store::LooseStore struct On-disk loose object store for one objects/ directory. API
grit_lib::objects::odb::store::MemoryStore struct In-memory object map keyed by ObjectId. API
grit_lib::objects::odb::store::MidxObjects struct MIDX-backed read-only ObjectStore for one objects/ directory. API
grit_lib::objects::odb::store::MidxObjectsStatus enum Whether MidxObjects can serve reads for this repository. API
grit_lib::objects::odb::store::ObjectStore trait Read-only object storage: lookup, metadata, streaming, and enumeration. API
grit_lib::objects::odb::store::ObjectStream struct Streaming handle for a single object’s uncompressed payload. API
grit_lib::objects::odb::store::PackFilter struct Which local pack indexes participate in filtered membership checks. API
grit_lib::objects::odb::store::PackedObjects struct Pack-index-backed read-only ObjectStore for one objects/ directory. API
grit_lib::objects::odb::store::PrunableObjectStore trait Object storage that can delete objects, so garbage collection can reclaim them. API
grit_lib::objects::odb::store::WritableObjectStore trait Object storage that supports inserting new objects. API
grit_lib::objects::pack module Pack files, indexes, and packfile I/O. API
grit_lib::objects::pack::PackIndex struct Parsed pack index with fanout-accelerated OID lookup and in-place table reads. API
grit_lib::objects::pack::PackIndexEntryRef struct Borrowed view of one row in a pack index. API
grit_lib::objects::pack::SingleLocalPackReader struct Sorted cat-file --batch reader for repos with exactly one local pack (hot-path benchmarks). API
grit_lib::objects::pack_object_select module Object selection heuristics for packing. API
grit_lib::objects::pack_object_select::HaveBoundary enum How client haves bound the want-side object walk. API
grit_lib::objects::pack_object_select::PackEnumerateOptions struct Parameters for enumerate_pack_objects. API
grit_lib::objects::pack_objects module Pack-objects negotiation and encoding. API
grit_lib::objects::pack_objects::PackBuildOptions struct Options controlling pack-objects output (also used by build_pack). API
grit_lib::objects::pack_objects::PackObjects struct Streaming pack-objects builder over an Odb. API
grit_lib::objects::pack_objects::PackObjectsOptions struct Extended options for PackObjects. API
grit_lib::objects::pack_objects::PackStats struct Counters reported after a successful pack write. API
grit_lib::objects::pack_objects::UploadPackStream struct The pack one upload-pack response streams: the client’s wants and haves, the shallow boundaries on either side, and an optional partial-clone filter. API
grit_lib::objects::pack_store module Pack-backed object store implementation. API
grit_lib::objects::pack_store::PackStore struct Per-objects/ cache of pack indexes, bytes, MIDX views, and delta-base LRU state. API
grit_lib::objects::promisor module promisor API (re-exported at this path). API
grit_lib::objects::promisor::DefaultPromisorFetcher struct Default PromisorFetcher using Remote::fetch and the process HTTP client factory. API
grit_lib::objects::promisor::PromisorFetcher trait Fetches missing objects from the configured promisor remote without updating refs. API
grit_lib::objects::promisor_remote module Promisor remote configuration for partial clones. API
grit_lib::objects::promisor_remote::PromisorAcceptPolicy struct The client’s rules for accepting advertised promisor remotes. API
grit_lib::objects::promisor_remote::PromisorAdvertisement struct The promisor remotes a server advertises with the promisor-remote capability. API
grit_lib::objects::promisor_remote::PromisorConfigWarning enum A promisor-related config value the library ignored. API
grit_lib::objects::promisor_remote::PromisorDecision struct The client’s verdict on every advertised promisor remote. API
grit_lib::objects::promisor_remote::PromisorField enum An optional per-remote field the promisor-remote capability can carry besides name and url. API
grit_lib::objects::promisor_remote::PromisorHandshake struct What the promisor-remote exchange decided for one fetch. API
grit_lib::objects::promisor_remote::PromisorHandshakeOptions struct Options for PromisorHandshake::evaluate. API
grit_lib::objects::promisor_remote::PromisorRejection enum Why an advertised promisor remote was not accepted. API
grit_lib::objects::unpack_objects module Unpack loose objects from pack streams. API
grit_lib::objects::unpack_objects::UnpackOptions struct Options controlling unpack-objects behaviour. API
grit_lib::operation module Shared conflict classification and in-progress operation vocabulary. API
grit_lib::operation::BlockedMove struct The files a ConflictKind::DirectoryRenameBlocked directory rename did not move. API
grit_lib::operation::Conflict struct One conflicted path, as reported by status and by every operation that can stop on conflicts. API
grit_lib::operation::ConflictKind enum How the two sides of a merge collided on one path. API
grit_lib::operation::ConflictKindPhrase enum Conflict category for grouped status output; the CLI maps each variant to its words. API
grit_lib::operation::MovedPath struct Where a ConflictKind::DirectoryRenameMoved file came from. API
grit_lib::operation::OperationState struct What paused operations left in the git directory, from Operations::state. API
grit_lib::operation::Operations struct Paused merge, rebase, pick, revert and bisect state for one open repository. API
grit_lib::operation::RenamedPaths struct The three names in a ConflictKind::RenameRename conflict. API
grit_lib::ownership_check module Injectable ownership checks for repository discovery (safe.directory). API
grit_lib::ownership_check::OwnershipCheck trait Answers whether the current user owns a repository path. API
grit_lib::ownership_check::OwnershipContext struct Context passed to OwnershipCheck::status. API
grit_lib::ownership_check::OwnershipError enum Failure modes for ownership inspection. API
grit_lib::ownership_check::OwnershipStatus enum Whether a path on disk is owned by the effective user. API
grit_lib::ownership_check::SystemOwnershipCheck struct Default ownership check using the effective Unix uid and SUDO_UID. API
grit_lib::parallel module Ordered scoped-thread parallelism and Git config-driven thread policy. API
grit_lib::parallel::ParallelHashError enum Incremental hasher for Git file checksums (pack/index/MIDX/commit-graph trailers). API
grit_lib::parallel::ParallelHashError enum Failure from fallible parallel helpers when a closure returns an error. API
grit_lib::parallel::ParallelOp enum Git operation that selects which config keys apply to parallelism. API
grit_lib::parallel::ParallelOptions struct Resolved worker count and serial-fallback thresholds for one parallel map call. API
grit_lib::parallel::Parallelism struct Resolved worker thread count for parallel helpers. API
grit_lib::parallel::ThreadPolicy struct Explicit CLI or embedder overrides layered on top of config resolution. API
grit_lib::path_validate module Git-compatible path component validation (verify_path / tree fsck rules). API
grit_lib::path_validate::EntryMode struct Git tree/index file mode for validation (symlink vs blob affects dot-file rules). API
grit_lib::path_validate::PathComponentError enum Why a single path component fails validation. API
grit_lib::path_validate::PathValidationKind enum Which Git path rules to apply (validate_component / validate_path). API
grit_lib::path_validate::ProtectOptions struct Whether NTFS and HFS+ spelling protections apply (from core.protectNTFS / core.protectHFS). API
grit_lib::path_validate::TreeEntryNameAudit struct Semantic problems detected on a tree entry name (fsck aggregates several at once). API
grit_lib::porcelain module Porcelain operations — user-facing workflows that assemble structured result models from domain modules (e.g. API
grit_lib::porcelain::CommitError enum Commit, identity, signing, and patch-scoped commit failures. API
grit_lib::porcelain::MergeError enum Merge, replay, and in-progress operation failures. 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 Paths returned by [stage] (repository-relative, / separators). API
grit_lib::porcelain::branch module Local branches: create one without switching HEAD, list them, delete one, rename one, and configure upstream. API
grit_lib::porcelain::branch::BranchCreateOptions struct Inputs for Branches::create. API
grit_lib::porcelain::branch::BranchDeleteMode enum Safe delete requires the tip to be merged; force skips the check. API
grit_lib::porcelain::branch::BranchDeleteOptions struct Options for Branches::delete. API
grit_lib::porcelain::branch::BranchError enum Branch create, delete, and upstream failures. API
grit_lib::porcelain::branch::BranchList struct Result of [list_branches]. API
grit_lib::porcelain::branch::BranchRenameOptions struct Options for Branches::rename. API
grit_lib::porcelain::branch::CreateBranchOutcome struct Outcome of [create_branch]. API
grit_lib::porcelain::branch::DeletedBranch struct Result of Branches::delete. API
grit_lib::porcelain::branch::LocalBranch struct One local branch in a BranchList. API
grit_lib::porcelain::branch::RenameBranchOutcome struct Outcome of [rename_branch]. API
grit_lib::porcelain::branch::StartPoint struct Start commit and reflog label for crate::porcelain::branch::BranchCreateOptions::start. API
grit_lib::porcelain::branch::TrackMode enum Whether creating a branch should configure branch..remote / .merge. API
grit_lib::porcelain::checkout module git checkout worktree-apply primitives. API
grit_lib::porcelain::checkout::CheckoutOutcome struct Populated-tree checkout metadata (case-insensitive path collisions). API
grit_lib::porcelain::checkout_reflog module Reflog entries for branch checkout and branch creation (Git-compatible messages). API
grit_lib::porcelain::cherry_pick module Merge-strategy helpers shared by pick/revert replay and other tree merges. 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 Checkout::clean. API
grit_lib::porcelain::clean::CleanOutcome struct Result of Checkout::clean. API
grit_lib::porcelain::clean::CleanScope enum Which untracked/ignored paths Checkout::clean may remove. API
grit_lib::porcelain::commit module Create a commit from the current index and move the checked-out branch. API
grit_lib::porcelain::commit::CommitAuthorInfo struct Request plus scope for Commits::create and Commits::plan. API
grit_lib::porcelain::commit::CommitAuthorInfo struct Author name, email, and date suffix from a written commit header line. API
grit_lib::porcelain::commit::CommitFile struct One path-level change that would be recorded in a commit. API
grit_lib::porcelain::commit::CommitOutcome struct Result of [create_commit]. API
grit_lib::porcelain::commit::CommitPatchInput enum Hunk ids or parsed patches for CommitScope::Patch. API
grit_lib::porcelain::commit::CommitPlan struct Planned commit contents and metadata (see [plan_commit]). API
grit_lib::porcelain::commit::CommitRequest struct Inputs for [create_commit]. API
grit_lib::porcelain::commit::CommitScope enum Which paths are included when recording a commit ([commit_with_scope]). API
grit_lib::porcelain::commit::HookPolicy enum Whether the verifying hooks run before a commit object is written. API
grit_lib::porcelain::hunk_select module Select structured diff hunks by stable id and apply them to the index. API
grit_lib::porcelain::hunk_select::HunkSelectError enum Failure while resolving or staging hunk ids. API
grit_lib::porcelain::hunk_select::HunkSelection struct Selected hunks by stable id and/or new-side line ranges. API
grit_lib::porcelain::hunk_select::LineRange struct New-side line range for partial hunk staging (1-based, inclusive). API
grit_lib::porcelain::hunk_select::RestoreHunksOutcome struct Outcome of [restore_hunks]. API
grit_lib::porcelain::hunk_select::StageHunksOutcome struct Result of [stage_hunks]. API
grit_lib::porcelain::index_mode module Explicit index file modes for paths where the worktree does not report executable bits. API
grit_lib::porcelain::index_mode::StageExecutableHint enum Whether staging should force the executable bit for matched regular files. API
grit_lib::porcelain::log module git log ref decoration as structured data. API
grit_lib::porcelain::log::CommitRefDecoration struct One ref label attached to a commit for structured log/show JSON. API
grit_lib::porcelain::log::CommitReuse trait Commits a caller already holds, handed out once each so loaders skip the object read. 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::log::DecorationOptions struct Which refs RevWalk::decorations collects and how it names them. API
grit_lib::porcelain::log::LoadedCommit struct Commit metadata loaded once per oid for porcelain JSON (log, show, revs, …). API
grit_lib::porcelain::merge module git merge index/head algorithm core. API
grit_lib::porcelain::merge::ContinueOptions struct Combined diff content for merge commits. API
grit_lib::porcelain::merge::ContinueOptions struct Options for [continue_merge]. API
grit_lib::porcelain::merge::ContinueOutcome struct Result of [continue_merge]. API
grit_lib::porcelain::merge::FastForwardPolicy enum Fast-forward policy for branch integration. API
grit_lib::porcelain::merge::IntegrateBranchOptions struct Fast-forward toggle for pull-style integration via Merge::integrate_into_branch (convert with From into MergeOptions). API
grit_lib::porcelain::merge::IntegrateBranchOutcome enum Result of integrating another branch into the current one ([integrate_branch]). API
grit_lib::porcelain::merge::MergeCommitMode enum Whether integration stops before creating a commit. API
grit_lib::porcelain::merge::MergeDryRunPlan enum Planned merge of other_oid into into_oid without touching refs, the index, merge state, or the working tree (same in-memory three-way merge as [predict_merge]). API
grit_lib::porcelain::merge::MergeOptions struct Options for [integrate_branch_with]. API
grit_lib::porcelain::merge::MergePrediction enum In-memory prediction of merging other_oid into the commit into_oid. API
grit_lib::porcelain::merge::MergePredictionOptions struct Options for [predict_merge] and [write_merge_tree]. API
grit_lib::porcelain::merge::MergeSource struct The commit a merge brings in, and how its name was resolved ([resolve_merge_source]). API
grit_lib::porcelain::merge::MergeSourceKind enum What kind of name a merge source was given by ([resolve_merge_source]). API
grit_lib::porcelain::merge::MergeTreeStage struct One unmerged index entry of a WrittenMergeTree: the rows git merge-tree --write-tree prints after the tree id. API
grit_lib::porcelain::merge::WrittenMergeTree struct A three-way merge result stored in the object database ([write_merge_tree]). 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::BlockedRemoval struct A path [remove_paths] refused to remove, carried by crate::worktree::WorktreeError::RemoveBlocked. API
grit_lib::porcelain::paths::MoveOptions struct Options for [move_paths]. API
grit_lib::porcelain::paths::MoveOutcome struct Result of [move_paths] and [move_path]. API
grit_lib::porcelain::paths::PathMove struct One tracked path rename performed by [move_paths]. API
grit_lib::porcelain::paths::RemoveBlockReason enum Why [remove_paths] refused to remove a path without RemoveOptions::force. 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::pathspec_match module Shared pathspec matching against index, HEAD tree, and worktree paths. API
grit_lib::porcelain::pull module Fetch from a remote and integrate the configured upstream into the current branch. API
grit_lib::porcelain::pull::FetchedUpstream struct An upstream commit pull integrates without fetching (PullOptions::upstream). API
grit_lib::porcelain::pull::PullCheck struct Dry-run result for PullOptions::check. API
grit_lib::porcelain::pull::PullError enum Pull-specific failures from pull; fetch, merge, rebase, and repository failures are reported in their own areas. API
grit_lib::porcelain::pull::PullMode enum How pull integrates upstream commits when a fast-forward is not possible. API
grit_lib::porcelain::pull::PullOptions struct Options for pull. API
grit_lib::porcelain::pull::PullOutcome struct Structured outcome of pull. API
grit_lib::porcelain::pull::PullResult enum High-level result of a successful pull. API
grit_lib::porcelain::quote_path module Shell-style path quoting for display. 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::replay_sequence module Multi-commit cherry-pick and revert sequences with Git-compatible on-disk state. API
grit_lib::porcelain::replay_sequence::ReplayAbortOutcome enum Whether [abort_replay_sequence] rewound the branch or only cleared replay metadata. API
grit_lib::porcelain::replay_sequence::ReplayCreated struct One commit produced by a replay step, paired with its source. API
grit_lib::porcelain::replay_sequence::ReplayEmptyPolicy enum How to handle a replay step whose merged tree matches HEAD (empty patch). API
grit_lib::porcelain::replay_sequence::ReplayOptions struct Per-sequence merge and message options (stored under .git/sequencer/opts for grit starts). API
grit_lib::porcelain::replay_sequence::ReplaySequenceRequest struct Inputs for [start_replay_sequence]. API
grit_lib::porcelain::replay_sequence::SequenceOutcome enum Result of starting or advancing a replay sequence. API
grit_lib::porcelain::replay_sequence::SequencePrediction enum In-memory prediction of [start_replay_sequence] (no refs, index, worktree, or on-disk object writes). API
grit_lib::porcelain::reset module Move HEAD and optionally the index and working tree to a target commit. API
grit_lib::porcelain::reset::OrphanedCommitSummary struct One commit that becomes unreachable when HEAD moves away from it. API
grit_lib::porcelain::reset::ResetMode enum Which parts of the repository [reset_to_commit] updates. API
grit_lib::porcelain::reset::ResetOptions struct Inputs for [reset_to_commit] and [preview_reset]. API
grit_lib::porcelain::reset::ResetOutcome struct Result of [reset_to_commit]. API
grit_lib::porcelain::reset::ResetPreview struct Non-mutating preview of [reset_to_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::ConflictSide enum Unmerged index side to check out into the worktree (git restore --ours|--theirs). 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::IndexStagingThresholds struct Entry-count thresholds for bulk tracked restage behavior. 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::staging::StageWorktreeChangesOutcome struct Result of [stage_worktree_changes]. API
grit_lib::porcelain::status module git status as a structured operation. API
grit_lib::porcelain::status::ConflictGroup struct Unmerged paths that share one ConflictKind, from StatusModel::conflict_groups. API
grit_lib::porcelain::status::ConflictGroup struct Tracked paths that collide on a case-insensitive volume and share one on-disk file. API
grit_lib::porcelain::status::IgnoredMode enum How ignored files are reported (git status --ignored[=]). API
grit_lib::porcelain::status::InterruptedRewrite enum How [status] dealt with an interrupted rewrite apply, from [crate::history::recover_interrupted_rewrite_apply]. 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::StatusAction enum An everyday follow-up suggested by StatusGuidance::Actions. API
grit_lib::porcelain::status::StatusGuidance enum What to do next with the repository, from StatusModel::guidance. 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::StatusShortLine enum One line of compact status output before terminal path quoting. API
grit_lib::porcelain::status::StatusShortPath enum Path half of a StatusShortLine (single path or rename/copy endpoints). API
grit_lib::porcelain::status::UntrackedCollectMeta struct Side effects from an untracked/ignored walk beyond the path lists. API
grit_lib::porcelain::status::UntrackedMode enum How untracked files are reported (git status --untracked-files=). API
grit_lib::porcelain::switch module Switch branches or detach HEAD at a commit, updating the working tree when needed. API
grit_lib::porcelain::switch::SwitchMode enum Resolved switch target after DWIM and revision parsing. API
grit_lib::porcelain::switch::SwitchOptions struct Inputs for [switch_repository]. API
grit_lib::porcelain::switch::SwitchOutcome struct Result of [switch_repository]. API
grit_lib::porcelain::tag module Tag creation, listing, deletion, verification and the list filter/sort helpers. API
grit_lib::porcelain::tag::CreateTagOutcome struct Result of [create_tag]. API
grit_lib::porcelain::tag::CreateTagRequest struct Inputs for [create_tag]. API
grit_lib::porcelain::tag::Ident struct Parsed name and email from a Git identity line (without timestamp). API
grit_lib::porcelain::tag::TagAnnotation struct Annotated tag message and tagger metadata for list output. API
grit_lib::porcelain::tag::TagDetail enum Amount of tag metadata requested from [list_tags]. API
grit_lib::porcelain::tag::TagError enum Tag create, delete, and verification failures. API
grit_lib::porcelain::tag::TagKind enum Whether a refs/tags/* ref is lightweight or an annotated tag object. API
grit_lib::porcelain::tag::TagList enum Result rows returned by [list_tags] for the requested TagDetail. API
grit_lib::porcelain::tag::TagSummary struct One tag in the result of [list_tags]. API
grit_lib::porcelain::tag::VerifiedTag struct Result of [verify_tag_by_name]. API
grit_lib::porcelain::terminal module Terminal capability probes for porcelain output. API
grit_lib::porcelain::workspace_snapshot module Capture and restore repository workspace state for undo logs (index with conflict stages, worktree bytes including conflict markers, HEAD, named refs, and in-progress operation sentinels). API
grit_lib::porcelain::workspace_snapshot::WorkspaceCaptureOptions struct Options for [capture_workspace_snapshot]. API
grit_lib::porcelain::workspace_snapshot::WorkspaceRestoreOptions struct Options for [restore_workspace_snapshot]. API
grit_lib::porcelain::workspace_snapshot::WorkspaceSnapshot struct A point-in-time workspace snapshot suitable for undo/redo in front ends. API
grit_lib::porcelain::worktree_guard module Lightweight worktree cleanliness checks without a full status pass. API
grit_lib::prelude module The types most callers need, re-exported for use grit_lib::prelude::*;. API
grit_lib::prelude::RepositoryOptions struct Options passed to crate::repo::Repository::open, crate::repo::Repository::discover, and related entry points. API
grit_lib::progress module Progress reporting and cancellation across the library/CLI boundary. API
grit_lib::progress::CancelToken struct Cooperative cancellation handle shared across threads (Clone shares the same flag). API
grit_lib::progress::FetchMilestone enum A point reached in a wire fetch, reported through ProgressSink::milestone. API
grit_lib::progress::NullProgress struct A ProgressSink that discards every update. API
grit_lib::progress::OverallEstimate struct A snapshot of overall progress. API
grit_lib::progress::OverallEstimator struct Combines per-phase progress into one overall estimate. API
grit_lib::progress::PhaseRates struct Typical throughput used to size phases that have not started yet. API
grit_lib::progress::ProgressPhase enum A coarse phase of a long-running Git operation. API
grit_lib::progress::ProgressSink trait A sink for progress updates emitted by a library operation. API
grit_lib::progress::ProgressUnit enum Unit for ProgressSink::inc / ProgressSink::set during a phase. API
grit_lib::progress::ReceivedObjects struct How far a pack transfer has got, counted in objects rather than bytes. API
grit_lib::refs module Reference storage — files backend + reftable backend. 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::DwimMatch struct The ref a short name such as main or v1.0 stands for, from References::dwim. API
grit_lib::refs::LogRefsConfig enum Core logAllRefUpdates modes (after config lookup), matching Git’s log_refs_config. API
grit_lib::refs::PackedRefRecord struct One reference line (and optional peel) for [write_packed_refs_file]. 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::RefUpdateCommitOutcome struct Per-ref result from commit_ref_updates_non_atomic_on_store. API
grit_lib::refs::References struct Resolve, list, and update refs for one open repository. API
grit_lib::refs::RefnameUnavailable enum Why a reference name cannot be created (Git refs_verify_refname_available style). API
grit_lib::refs::branch_tracking module branch_tracking API (re-exported at this path). API
grit_lib::refs::branch_tracking::BaseSource enum Where a ComparisonBase came from. API
grit_lib::refs::branch_tracking::BoundedCommitSide struct One side of a TargetComparison with total count, a bounded oid list, and truncation. API
grit_lib::refs::branch_tracking::BranchDetail enum How much object data [list_branches] loads per branch. API
grit_lib::refs::branch_tracking::BranchListQuery struct Query for [list_branches]: scope plus shared ref patterns, sort, and limit. API
grit_lib::refs::branch_tracking::BranchScope enum Which branches to include in [list_branches]. API
grit_lib::refs::branch_tracking::BranchStanding struct Target and upstream standing for the current HEAD (status header / JSON). API
grit_lib::refs::branch_tracking::BranchSummary struct One row from [list_branches]. API
grit_lib::refs::branch_tracking::ComparisonBase struct A resolved branch that another branch is measured against. API
grit_lib::refs::branch_tracking::Standing enum How a branch tip relates to its base, from symmetric ahead/behind counts. API
grit_lib::refs::branch_tracking::StandingHeader enum How the status header summarizes branch vs target/upstream (before merge/rebase overrides). API
grit_lib::refs::branch_tracking::StandingOptions struct Options for BranchStanding::compute. API
grit_lib::refs::branch_tracking::StatusHeader enum Status header after branch standing and in-progress operation overrides. API
grit_lib::refs::branch_tracking::StatusIntegrationAction enum Whether status should suggest grit pull or grit merge to catch up. API
grit_lib::refs::branch_tracking::StatusIntegrationHint struct Footer hint for integrating commits the branch is behind. API
grit_lib::refs::branch_tracking::TargetComparison struct Ahead-of-target view of the current branch (grit shortlog / grit ahead). API
grit_lib::refs::branch_tracking::TargetComparisonOptions struct Options for compare_with_target. API
grit_lib::refs::branch_tracking::TargetSpec struct User-provided ref or revision to compare the current branch against. API
grit_lib::refs::branch_tracking::TipComparison struct Symmetric comparison of a branch tip with a base commit. API
grit_lib::refs::branch_tracking::TrackedComparison struct Symmetric comparison of the current branch tip against one tracked ref (target or upstream). API
grit_lib::refs::branch_tracking::UpstreamStatus struct Upstream of a local branch when branch..merge / .remote is set. API
grit_lib::refs::check_ref_format module check_ref_format API (re-exported at this path). API
grit_lib::refs::check_ref_format::RefName struct Validated full ref name (for example refs/heads/main). API
grit_lib::refs::check_ref_format::RefNameError enum Errors returned by ref-name validation and RefName::parse. API
grit_lib::refs::check_ref_format::RefNamePolicy struct Options controlling how a ref name is validated when parsed. API
grit_lib::refs::check_ref_format::RefNameRef struct Borrowed validated ref name (like std::path::Path to std::path::PathBuf). API
grit_lib::refs::gc module In-process ref-transaction and loose-object prune helpers. API
grit_lib::refs::gc::PruneStats struct Result of a loose-object prune. API
grit_lib::refs::gc::RefTransactionItem struct A single ref change in an update_refs batch transaction. API
grit_lib::refs::hide_refs module hide_refs API (re-exported at this path). API
grit_lib::refs::listing module Shared ref listing: namespace selection, glob patterns, sort keys, and limits. API
grit_lib::refs::listing::RefKind enum Class of ref for display and JSON (head, remote, tag, …). API
grit_lib::refs::listing::RefListing struct One ref returned from References::query or query_listings_from_pairs. API
grit_lib::refs::listing::RefNamespace enum Which ref namespace to include in a RefQuery. API
grit_lib::refs::listing::RefQuery struct Filters and ordering for a ref listing query. API
grit_lib::refs::listing::RefQueryOptions struct Extra inputs for pattern matching and version sort (explicit config, no env reads). API
grit_lib::refs::listing::RefSort struct Sort direction and key for ref listing. API
grit_lib::refs::listing::SortKey enum Primary sort key for RefQuery. API
grit_lib::refs::query_reachability module Reachability filters for super::listing::RefQuery (--contains, --merged, …). API
grit_lib::refs::ref_namespace module ref_namespace API (re-exported at this path). API
grit_lib::refs::ref_storage module ref_storage API (re-exported at this path). API
grit_lib::refs::ref_storage::RefStorageFormat enum On-disk ref storage backend named by extensions.refStorage. API
grit_lib::refs::reflog module reflog API (re-exported at this path). API
grit_lib::refs::reflog::MessageMatcher struct Case-sensitive substring filter for reflog message text (--grep). API
grit_lib::refs::reflog::ReflogEntry struct A single reflog entry. API
grit_lib::refs::reflog::ReflogExpireActionKind enum What happened to one reflog entry during expire_reflog_git. API
grit_lib::refs::reflog::ReflogSelector struct One entry in a reference log, indexed from its newest entry. API
grit_lib::refs::refs_fsck module refs_fsck API (re-exported at this path). API
grit_lib::refs::refs_fsck::RefsFsckIssue struct One diagnostic (use format_refs_fsck_line for Git-compatible output). API
grit_lib::refs::refs_fsck::RefsFsckSeverity enum Severity of a refs-fsck diagnostic. API
grit_lib::refs::refspec module refspec API (re-exported at this path). API
grit_lib::refs::refspec::RefspecError enum Error returned when a refspec cannot be parsed. API
grit_lib::refs::refspec::RefspecItem struct A parsed refspec item. API
grit_lib::refs::reftable module reftable API (re-exported at this path). API
grit_lib::refs::reftable::LogRecord struct A decoded log record. API
grit_lib::refs::reftable::RefRecord struct A decoded ref record. API
grit_lib::refs::reftable::RefValue enum A single reference record as stored in a reftable. API
grit_lib::refs::reftable::ReftableError enum A reftable failure: malformed table bytes, a locked stack, or a rejected update. API
grit_lib::refs::reftable::ReftableField enum A field of a reftable file, named by ReftableError variants. API
grit_lib::refs::reftable::ReftableReader struct Reads a single reftable file from a byte buffer. API
grit_lib::refs::reftable::ReftableStack struct Manages the $GIT_DIR/reftable/ directory and tables.list stack. API
grit_lib::refs::reftable::ReftableTransactionUpdate struct A ref update that should be written to a reftable transaction. API
grit_lib::refs::reftable::ReftableWriteOptions struct Repository-level overrides for reftable stack writes. API
grit_lib::refs::reftable::ReftableWriter struct Writes a single reftable file. API
grit_lib::refs::reftable::WriteOptions struct Write options for reftable creation. API
grit_lib::refs::store module Pluggable reference storage: typed transactions and backends. API
grit_lib::refs::store::BackendError struct A custom ref backend’s storage error, carried by RefStoreError::Backend. 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::RefCaseOnlyRename struct Rename a loose ref when only letter case changes (case-insensitive filesystems). API
grit_lib::refs::store::RefEntry struct One ref returned from iteration, optionally with a peeled object id. API
grit_lib::refs::store::RefName struct Validated full ref name (for example refs/heads/main). API
grit_lib::refs::store::RefNameRef struct Borrowed validated ref name (like std::path::Path to std::path::PathBuf). API
grit_lib::refs::store::RefReflogRename struct Move a branch reflog to a new ref name and append one entry (branch rename). 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 / REF_SKIP_OID_VERIFICATION 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::store::SingleWriterGate struct Fair FIFO gate for a single in-process writer slot. API
grit_lib::refs::store::SingleWriterTicket struct Holds the writer slot until dropped (commit, abort, or a failed prepare after acquire). API
grit_lib::refs::store::backend module Building blocks for custom RefStore backends. API
grit_lib::refs::store::backend::RefBatchState struct Mutable ref + reflog state used to simulate or apply a transaction batch. API
grit_lib::refs::store::paths module Git ref-related paths under a repository directory (common dir or git dir). API
grit_lib::refs::version_sort module Ref-name version ordering for version:refname sort. API
grit_lib::remote module Remotes, fetch/push, transport, and credential helpers. API
grit_lib::remote::HttpClientFactory trait Builds HTTP clients for smart-HTTP remotes. API
grit_lib::remote::InspectOptions struct Options for Remotes::inspect. API
grit_lib::remote::ListRefsOptions struct Options controlling Remote::list_refs output, aligned with git ls-remote. API
grit_lib::remote::PeeledRemoteRef struct One advertised ref with its peeled ^{} line folded in (see fold_peeled_refs). API
grit_lib::remote::Remote struct A resolved remote: name (if from config), URL(s), and fetch refspecs. API
grit_lib::remote::RemoteBranchState struct One remote branch and how it relates to local tracking refs. API
grit_lib::remote::RemoteBranchStateKind enum Whether a remote branch is tracked locally, new on the remote, or stale locally. API
grit_lib::remote::RemoteError enum Errors for remote URL resolution, transport, fetch, push, and clone. API
grit_lib::remote::RemotePullBranch struct A local branch configured to pull from a remote via branch.* config. API
grit_lib::remote::RemoteRef struct A single reference returned by Remote::list_refs. API
grit_lib::remote::RemoteSummary struct Result of inspecting one configured remote. API
grit_lib::remote::RemoteUrl enum A parsed remote URL by transport kind. API
grit_lib::remote::bundle_uri module bundle-uri API (re-exported at this path). API
grit_lib::remote::bundle_uri::BundleList struct A bundle list as the bundle-uri command returns it. API
grit_lib::remote::bundle_uri::BundleListEntry struct One bundle in a BundleList. API
grit_lib::remote::bundle_uri::BundleListMode enum How a client should use the bundles in a BundleList (bundle.mode). API
grit_lib::remote::bundle_uri::BundleSeed enum What [seed_from_bundle_uri] did. API
grit_lib::remote::clone module clone API (re-exported at this path). API
grit_lib::remote::clone::CloneCheckout enum Whether clone checked out the default branch or left the work tree empty. API
grit_lib::remote::clone::CloneError enum Clone-specific failures from clone; remote, object, and repository failures are reported in their own areas. API
grit_lib::remote::clone::CloneHead enum Initial checkout disposition after clone (before working-tree checkout). API
grit_lib::remote::clone::CloneIntoOptions struct Options for clone_into: configure a remote and fetch into an already-open repository. API
grit_lib::remote::clone::CloneIntoOutcome struct Result of clone_into. API
grit_lib::remote::clone::CloneOptions struct Options for clone. API
grit_lib::remote::clone::CloneOutcome struct Result of a successful clone. API
grit_lib::remote::clone::CloneTags enum Which tags to fetch during clone, matching git clone tag behavior. API
grit_lib::remote::credentials module credentials API (re-exported at this path). API
grit_lib::remote::credentials::Credential struct A structured Git credential. API
grit_lib::remote::credentials::CredentialProvider trait The pluggable credential seam an embedder implements (or wraps). API
grit_lib::remote::credentials::HelperCredentialProvider struct Git-compatible CredentialProvider that runs the configured credential.helper programs. API
grit_lib::remote::credentials::HelperValueError enum Why helper_config_value cannot express a helper command as a credential.helper value. API
grit_lib::remote::fetch_request module Explicit fetch refspec resolution. API
grit_lib::remote::fetch_request::FetchInvocation struct Remote name and explicit refspec strings after parsing grit fetch positionals. API
grit_lib::remote::fetch_request::FetchRefspecError enum Errors while resolving fetch refspecs before transfer. API
grit_lib::remote::partial_clone module Partial-clone filter specs and promisor-remote config. API
grit_lib::remote::partial_clone::ObjectFilterSpec enum Client-side object filter for fetch and clone (partial clone). API
grit_lib::remote::partial_clone::PartialCloneError enum Errors parsing a partial-clone filter spec. API
grit_lib::remote::pkt_line module pkt-line framing for the wire protocol. API
grit_lib::remote::pkt_line::Packet enum A single packet read from the wire. API
grit_lib::remote::protocol module protocol API (re-exported at this path). API
grit_lib::remote::protocol::ProtocolError enum Errors returned when a transport protocol is not allowed. API
grit_lib::remote::protocol::ProtocolPolicyInputs struct Explicit inputs for protocol allow/deny evaluation. API
grit_lib::remote::push_bundle module Resumable push bundle upload path suffix (smart HTTP servers). API
grit_lib::remote::push_plan module Resolve remotes and refspecs for Remote::push. API
grit_lib::remote::push_plan::ForceMode enum How non-fast-forward updates are allowed during a push. API
grit_lib::remote::push_plan::LeaseExpectation enum What a force-with-lease push compares the remote ref against. API
grit_lib::remote::push_plan::PushInvocation struct Remote and refspec strings after classifying grit push [] [...]. API
grit_lib::remote::push_plan::PushPlanContext struct Extra inputs needed to DWIM delete targets and short push destinations. API
grit_lib::remote::push_plan::PushPlanError enum Errors while planning a push (typed; no stringly matching in callers). API
grit_lib::remote::push_plan::PushPlanKind enum JSON / CLI classification of what was pushed. API
grit_lib::remote::push_plan::PushRequest struct What the caller wants to push (remote override, refspecs, tags, deletions). API
grit_lib::remote::push_plan::ResolvedPush struct A fully resolved push target. API
grit_lib::remote::push_report module push_report API (re-exported at this path). API
grit_lib::remote::push_report::PushRefResult struct One reference’s resolved push result, ready for display. API
grit_lib::remote::push_report::PushRefStatus enum The resolved outcome of a single reference update during a push. API
grit_lib::remote::resumable module Resumable HTTP downloads and TUS uploads. API
grit_lib::remote::resumable::ResumableDownloadDest enum Where to download when several processes share one resumable cache slot. API
grit_lib::remote::resumable::ResumableError enum Why a resumable transfer failed. API
grit_lib::remote::resumable::ResumableEvent enum Progress of a resumable transfer, reported through ProgressSink::resumable_transfer. API
grit_lib::remote::resumable::TransferDirection enum Which way a resumable transfer moves data. API
grit_lib::remote::serve module serve API (re-exported at this path). API
grit_lib::remote::serve::DeepenNotError enum Why a deepen-not argument was rejected; see ServeError::InvalidDeepenNot. API
grit_lib::remote::serve::MissingObjectReason enum Why a missing object could not be served; see ServeError::ObjectMissing. API
grit_lib::remote::serve::ProtocolVersion enum Wire protocol version requested by the client. API
grit_lib::remote::serve::ReceiveHook trait In-process checks an embedding server runs on every push. API
grit_lib::remote::serve::ReceiveHookContext struct Push options and other session context for ReceiveHook. API
grit_lib::remote::serve::ReceiveOutcome struct What a push session did. API
grit_lib::remote::serve::ReceivePack struct One push session served into a repository (the server side of git-receive-pack): advertise refs, read the ref updates and pack, store the objects, apply the updates, and report the result to the client. API
grit_lib::remote::serve::ReceivePolicy struct Which pushed objects and ref updates the server refuses. API
grit_lib::remote::serve::RefCommand struct One update requested by a pushing client. API
grit_lib::remote::serve::RefUpdateRefusal enum Why the server refused one ref update. API
grit_lib::remote::serve::RefUpdateResult struct The result of one requested ref update. API
grit_lib::remote::serve::RequestBodyLimitExceeded struct A fetch request body grew past the transport’s decoded-size limit. API
grit_lib::remote::serve::ServeError enum Protocol-level failures while serving a fetch or a push; repository failures are reported in their own areas. API
grit_lib::remote::serve::ServeOptions struct How a serving session is framed on the wire. API
grit_lib::remote::serve::UnpackError enum Why a pushed pack could not be stored. API
grit_lib::remote::serve::UploadOutcome struct Summary of one completed or partial upload-pack session. API
grit_lib::remote::serve::UploadPack struct One fetch session served from a repository (the server side of git-upload-pack): advertise refs, negotiate, and send a pack. API
grit_lib::remote::shallow module Shallow-boundary helpers exposed for integration tests. API
grit_lib::remote::sideband_lines module sideband_lines API (re-exported at this path). API
grit_lib::remote::sideband_lines::RemoteLine enum One decoded fragment of remote progress text. API
grit_lib::remote::sideband_lines::SidebandLines struct Incrementally decode channel-2 progress bytes into RemoteLine items. API
grit_lib::remote::transfer module transfer API (re-exported at this path). API
grit_lib::remote::transfer::CloneReflog struct Identity and message for clone reflog entries written by the library. API
grit_lib::remote::transfer::FetchAllOptions struct Options for RepositoryRemotes::fetch_all: the shared settings for every remote, and command-line overrides of each remote’s prune and tag config. API
grit_lib::remote::transfer::FetchDepth enum Shallow-history control for fetch and clone (--depth, --deepen, --unshallow). API
grit_lib::remote::transfer::FetchOptions struct Options controlling a fetch. API
grit_lib::remote::transfer::FetchOutcome struct The structured result of a fetch, ready for the embedder’s ref-store apply. API
grit_lib::remote::transfer::PackBuildOptions struct Options controlling pack-objects output (also used by build_pack). API
grit_lib::remote::transfer::PackObjects struct Streaming pack-objects builder over an Odb. API
grit_lib::remote::transfer::PackObjectsOptions struct Extended options for PackObjects. API
grit_lib::remote::transfer::PackStats struct Counters reported after a successful pack write. API
grit_lib::remote::transfer::PushOptions struct Options controlling a push. API
grit_lib::remote::transfer::PushOutcome struct The structured result of a push. API
grit_lib::remote::transfer::PushRefSpec struct A single ref update requested by a push. API
grit_lib::remote::transfer::RefUpdate struct The resolved outcome of one reference during a fetch. API
grit_lib::remote::transfer::TagMode enum Which tags to fetch alongside the requested refs. API
grit_lib::remote::transfer::TransferEndpoint enum The other side of a fetch or push whose transport the caller supplies, for RepositoryRemotes::fetch_from and RepositoryRemotes::push_to. API
grit_lib::remote::transfer::TransferStats struct Object and byte counts for objects received during a fetch or clone. API
grit_lib::remote::transfer::UpdateKind enum What a fetch did to one local ref, as reported to a user (UpdateMode::kind). API
grit_lib::remote::transfer::UpdateMode enum How a single reference resolved during a fetch (or would resolve in a push). API
grit_lib::remote::transport module transport API (re-exported at this path). API
grit_lib::remote::transport::Advertisement struct The captured ref/capability advertisement for a v0/v1 connection. API
grit_lib::remote::transport::ConnectOptions struct Options controlling the transport handshake. API
grit_lib::remote::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::remote::transport::GitDaemonTransport struct The native git:// daemon transport. API
grit_lib::remote::transport::Service enum The Git service a Connection speaks. API
grit_lib::remote::transport::SshCommand enum How the SshTransport invokes ssh. API
grit_lib::remote::transport::SshTransport struct The ssh transport: spawn ssh [opts] git-upload-pack '' and expose the child’s stdio as a Connection. API
grit_lib::remote::transport::Transport trait A factory that connects to a remote and performs the protocol handshake. API
grit_lib::remote::transport::http module Smart-HTTP Git transport over a pluggable HTTP client. API
grit_lib::remote::transport::http::HttpClient trait The minimal HTTP surface the smart-HTTP transport needs. API
grit_lib::remote::transport::http::HttpMethod enum Method of an HttpRequest. API
grit_lib::remote::transport::http::HttpRequest struct A request for HttpClient::send. API
grit_lib::remote::transport::http::HttpResponse struct A response from HttpClient::send. API
grit_lib::remote::transport::http::SmartHttpTransport struct A smart-HTTP Transport over a pluggable HttpClient. API
grit_lib::remote::transport_path module transport_path API (re-exported at this path). API
grit_lib::remote::transport_path::NoDirectoryName struct Error returned by [git_url_basename] when no directory name can be derived from a URL. API
grit_lib::repo module Repository discovery and the primary Repository handle. API
grit_lib::repo::DiscoveryInfo struct Provenance flags recorded when a repository is discovered or opened explicitly. API
grit_lib::repo::InitOptions struct Options for Repository::init. API
grit_lib::repo::InitOutcome struct Result of Repository::init. API
grit_lib::repo::Repository struct A handle to an open Git repository. API
grit_lib::repo::RepositoryLocation struct Where a repository lives on disk: its git directory and, when it has one, its work tree. API
grit_lib::repo::caches module Per-repository caches shared across open handles. API
grit_lib::repo::caches::RepoCaches struct Per-repository cache arena (held behind Arc on Repository). API
grit_lib::repo::error module Repository layout, discovery, init, and embedding failures. API
grit_lib::repo::error::FilesOnlyOperation enum An operation that only the files-backed object store supports. API
grit_lib::repo::error::RepositoryError enum Operation stopped because CancelToken fired before completion. API
grit_lib::repo::error::RepositoryError enum Failures opening, discovering, initializing, or validating a repository layout. API
grit_lib::repo::error::RepositoryError enum Per-repository caches shared across open handles. API
grit_lib::repo::error::UnknownRepositoryExtensions struct One or more unknown extensions.* keys (repository format version ≥ 1). API
grit_lib::repo::error::V1OnlyExtensionsInFormatZero struct Format version 0 with extensions.* keys that require format version 1. API
grit_lib::repo_handles module Typed Repository handles for remotes, worktrees, stash, notes, reflogs, and bundles. API
grit_lib::repo_handles::Branches struct Branch create, delete, list, rename, upstream, and comparison helpers for one repository. API
grit_lib::repo_handles::Checkout struct Checkout, switch, reset, restore, clean, and worktree path maintenance for one repository. API
grit_lib::repo_handles::ConfiguredRemote struct A remote that has a remote..* section in config. API
grit_lib::repo_handles::ExpireOptions struct Options for RepositoryReflogs::expire. API
grit_lib::repo_handles::HookInfo struct One hook script on disk. API
grit_lib::repo_handles::HookSource enum Where a traditional hook script was discovered. API
grit_lib::repo_handles::IndexedReflogEntry struct One reflog line with its newest-first index (0 is the latest entry). API
grit_lib::repo_handles::LockWorktreeOptions struct Options for locking during RepositoryWorktrees::add or Worktrees::lock. API
grit_lib::repo_handles::MessageMatcher struct Case-sensitive substring filter for reflog message text (--grep). API
grit_lib::repo_handles::Note struct One note with its contents, from RepositoryNotes::list_with_bodies. API
grit_lib::repo_handles::NoteAddOutcome enum What RepositoryNotes::add did to the annotated object’s note. API
grit_lib::repo_handles::NoteAddPlan struct Preview of RepositoryNotes::add without writing objects, refs, or reflogs. API
grit_lib::repo_handles::NoteListing struct One (annotated object, note blob) pair from a notes tree. API
grit_lib::repo_handles::NoteRemoveManyPlan struct Preview of RepositoryNotes::remove_many without writing objects, refs, or reflogs. API
grit_lib::repo_handles::NoteRemovePlan struct Preview of removing a note on one object without writing objects, refs, or reflogs. API
grit_lib::repo_handles::NotesWriteOptions struct Author, committer, and commit message for a notes ref update. API
grit_lib::repo_handles::RefExpireResult struct Per-ref prune count from RepositoryReflogs::expire. API
grit_lib::repo_handles::ReflogCreate enum When RepositoryReflogs::append may start a reflog that does not exist yet. API
grit_lib::repo_handles::ReflogExpireOutcome struct Summary returned by RepositoryReflogs::expire. API
grit_lib::repo_handles::ReflogPage struct One page of reflog query results. API
grit_lib::repo_handles::ReflogQuery struct Filters for RepositoryReflogs::query. API
grit_lib::repo_handles::RemoteRemoval struct Outcome of removing a remote. API
grit_lib::repo_handles::RemoteRename struct Result of RepositoryRemotes::rename. API
grit_lib::repo_handles::RemoteUrlKind enum Which URL field RepositoryRemotes::set_url updates. API
grit_lib::repo_handles::RemoveOptions struct Options for RepositoryRemotes::remove. API
grit_lib::repo_handles::RepositoryBundles struct Bundle file operations for one open repository. API
grit_lib::repo_handles::RepositoryHooks struct Hook discovery and dispatch for one open repository. API
grit_lib::repo_handles::RepositoryNotes struct Notes read/write for one open repository (default ref: NotesRef::commits). API
grit_lib::repo_handles::RepositoryReflogs struct Reflog read/write helpers scoped to an open repository. API
grit_lib::repo_handles::RepositoryRemotes struct Remote names and network operations for one open repository. API
grit_lib::repo_handles::RepositoryStash struct Stash list/push/apply/pop/drop for one open repository. API
grit_lib::repo_handles::RepositoryWorkspaceSnapshot struct Capture and restore full workspace state (index stages, worktree, refs, operation sentinels). API
grit_lib::repo_handles::RepositoryWorktrees struct Worktree listing and linked-worktree mutations for one open repository. API
grit_lib::repo_handles::SetHead enum How RepositoryRemotes::set_head updates refs/remotes//HEAD. API
grit_lib::repo_handles::SetHeadOutcome struct Result of RepositoryRemotes::set_head. API
grit_lib::repo_handles::TagListOptions struct Listing mode for Tags::list, collapsing [list_tags] and [list_tags_with_detail]. API
grit_lib::repo_handles::Tags struct Tag ref create, list, delete, and verify for one repository. API
grit_lib::repo_handles::UrlChange struct Result of RepositoryRemotes::set_url. API
grit_lib::revwalk module Revision walking: rev-parse, rev-list, merge-base, and commit-graph acceleration. API
grit_lib::revwalk::AbbrevLength enum How many hex digits RevWalk::abbreviate starts from. API
grit_lib::revwalk::AheadBehind struct How far a commit is ahead of and behind another (RevWalk::ahead_behind). API
grit_lib::revwalk::AheadBehindOptions struct Options for RevWalk::ahead_behind. API
grit_lib::revwalk::CommitExtent enum How much of each commit object a walk reads and hands back to its caller. API
grit_lib::revwalk::DescribeOptions struct Options for RevWalk::describe. API
grit_lib::revwalk::DescribedCommit struct Result of a successful describe: nearest tag by exact range count. API
grit_lib::revwalk::GraphCharset struct Character set for graph rendering. API
grit_lib::revwalk::GraphCommitInput struct One commit row fed into GraphLayout. API
grit_lib::revwalk::GraphLayout struct Incremental graph layout state. API
grit_lib::revwalk::GraphLineKind enum Kind of graph line relative to a commit entry. API
grit_lib::revwalk::GraphRenderedLine struct A rendered graph prefix (two columns per lane: glyph + space), without commit text. API
grit_lib::revwalk::GraphRowTopology struct Abstract lane topology for tests (column indices and parent edges). API
grit_lib::revwalk::IndexDwim enum How a name that matches no ref or object is treated: as a possible path (porcelain) or as a bad revision (plumbing). API
grit_lib::revwalk::LeftRightCounts struct Left/right commit counts for a symmetric range (A...B), matching git rev-list --left-right --count. API
grit_lib::revwalk::MergeBaseMode enum Which merge bases RevWalk::merge_bases computes. API
grit_lib::revwalk::MergeFilter enum Parent-count filter for commit lists (Git --merges / --no-merges). API
grit_lib::revwalk::Peel enum Object kind RevWalk::resolve peels the named object to. API
grit_lib::revwalk::ReachableWalkOptions struct Options for RevWalk::reachable_excluding. API
grit_lib::revwalk::RefSelection enum Positive ref tips to include in a rev walk (Git --all, --branches, --tags, --remotes). API
grit_lib::revwalk::ResolveOptions struct How RevWalk::resolve interprets a revision spec. API
grit_lib::revwalk::ResolvePurpose enum The kind of argument being resolved, which tunes disambiguation like Git’s per-command lookups. API
grit_lib::revwalk::RevWalkCommitIterOptions struct Options for RevWalk::commits_iter: lazy commit-only walks without object/cherry tables. API
grit_lib::revwalk::RevWalkCommitStream struct Lazy commit walk over the same tokens and RevWalkListOptions as RevWalk::rev_list_result, for plain default-order reachable history. API
grit_lib::revwalk::RevWalkCommitStreamItem struct One commit from RevWalk::commits_stream. API
grit_lib::revwalk::RevWalkListOptions struct Options for listing or counting commits through RevWalk. API
grit_lib::revwalk::RevWalkParsedSpecs struct Positive and negative revision specs produced by [parse_rev_walk_tokens]. API
grit_lib::revwalk::filter module Commit message and identity filters for revision walks (--author, --grep, …). API
grit_lib::revwalk::filter::CommitFilter struct Compiled commit filter applied during [crate::rev_list::rev_list]. API
grit_lib::revwalk::filter::CommitFilterBuilder struct Builder for CommitFilter. API
grit_lib::revwalk::filter::CommitFilterError enum Invalid commit-filter pattern or compilation failure. API
grit_lib::revwalk::group_by module Group walked commits for summary views (author shortlog-style reports). API
grit_lib::revwalk::group_by::AuthorGroup struct One author’s commits after grouping a walk result. API
grit_lib::revwalk::group_by::GroupByAuthorOptions struct Options for RevWalk::group_by_author and RevWalk::group_by_author_in_walk. API
grit_lib::revwalk::handle module Repository-scoped revision parsing and walking via RevWalk. API
grit_lib::revwalk::handle::RevWalk struct Parse revision specs and walk commit history for one repository. API
grit_lib::revwalk::handle::RevWalkCommitIter struct Iterator over commits from RevWalk::commits_iter. API
grit_lib::revwalk::handle::StdinRevisionSpecs struct Revision specs from RevWalk::parse_stdin_specs, ready for RevWalk::rev_list. API
grit_lib::revwalk::history module In-memory history rewrite planning and apply. API
grit_lib::revwalk::history::AbsorbExcludedRef struct A local branch tip excluded from the absorb stack when --base is omitted. API
grit_lib::revwalk::history::AbsorbOptions struct Options for History::absorb. API
grit_lib::revwalk::history::AbsorbPlan struct Result of History::absorb: rewrite plan plus assignment detail. API
grit_lib::revwalk::history::AppliedRewrite struct Result of History::apply and the fixup and absorb applies. API
grit_lib::revwalk::history::ApplyOptions struct Identity and reflog text recorded when History::apply moves refs. API
grit_lib::revwalk::history::CommitEdit enum Per-commit edit applied during planning. API
grit_lib::revwalk::history::EmptyPolicy enum Behavior when a replayed commit’s tree matches its new parent’s tree but did not before. API
grit_lib::revwalk::history::ExecReport struct Successful exec invocations captured during one verification or recovery call. API
grit_lib::revwalk::history::ExecRunRecord struct One --exec invocation at a specific commit. API
grit_lib::revwalk::history::ExecSpec struct Shell commands to run at each replayed commit during rebase --exec. API
grit_lib::revwalk::history::FixupOptions struct Options for History::fixup. API
grit_lib::revwalk::history::HeadEffect struct Effect on HEAD from the rewrite (commit pointer and trees). API
grit_lib::revwalk::history::History struct History edits (reword, drop, move, fixup, squash, split, absorb), undo and rebase for one open repository, from Repository::history. API
grit_lib::revwalk::history::HistoryError enum Failure modes while building a super::RewritePlan. API
grit_lib::revwalk::history::HistoryLastRecord struct Parsed .git/grit/history-last contents. API
grit_lib::revwalk::history::HunkAssignment struct A staged hunk assigned to a historical commit. API
grit_lib::revwalk::history::HunkRange struct 1-based unified-diff style coordinates for one staged hunk. API
grit_lib::revwalk::history::NewCommit struct Description of a new commit to insert immediately before an existing one. API
grit_lib::revwalk::history::Placement enum Where to place a moved commit relative to an anchor on the first-parent chain. API
grit_lib::revwalk::history::PlannedRefUpdate struct Planned movement of one ref (refs, index, and worktree are not updated by History::plan_rewrite). API
grit_lib::revwalk::history::PlanningError enum Failure modes for invalid planning inputs, as opposed to repository read failures (which surface as their own Error area). API
grit_lib::revwalk::history::PreRebase enum Whether a rebase runs the pre-rebase hook before it rewrites anything, and what the hook is told. API
grit_lib::revwalk::history::RebaseAbort struct Result of History::abort_rebase. API
grit_lib::revwalk::history::RebaseCheckPlan enum Predicted outcome of [plan_rebase_check] (no ref, index, or worktree updates). API
grit_lib::revwalk::history::RebaseOntoOptions struct Options for History::rebase_onto and History::plan_rebase. API
grit_lib::revwalk::history::RebaseOutcome enum Result of starting or advancing a rebase session. API
grit_lib::revwalk::history::RebasePlan enum Result of History::plan_rebase: already current, a rewrite plan, or a conflict report (not an error). API
grit_lib::revwalk::history::RebaseRequest struct Inputs for History::plan_rebase, matching git rebase [--onto ] on a single branch tip. API
grit_lib::revwalk::history::RebaseSessionError enum Failures while driving a rebase session. API
grit_lib::revwalk::history::RebaseStop struct Snapshot when a resumable rebase stops on conflicts. API
grit_lib::revwalk::history::RefScope enum Which local refs may move when a plan is applied later. API
grit_lib::revwalk::history::RewordOptions struct Fields to change when rewriting one commit’s message and/or author with History::reword. API
grit_lib::revwalk::history::RewriteApplyRecovery enum Outcome of History::recover_interrupted_apply. API
grit_lib::revwalk::history::RewriteOptions struct Inputs for History::plan_rewrite and the other history edits. API
grit_lib::revwalk::history::RewritePlan struct Result of History::plan_rewrite: new objects are already in the ODB. API
grit_lib::revwalk::history::RewrittenCommit struct One original commit and its replacement (if any). API
grit_lib::revwalk::history::SplitOptions struct Options for History::split. API
grit_lib::revwalk::history::SquashMessage enum How to choose the message on the squashed commit. API
grit_lib::revwalk::history::SquashOptions struct Inputs for History::squash. API
grit_lib::revwalk::history::StartRebaseOptions struct Options for History::start_rebase, History::continue_rebase and History::skip_rebase. API
grit_lib::revwalk::history::UnassignedHunk struct A staged hunk left in the index. API
grit_lib::revwalk::history::UnassignedReason enum Why a staged hunk could not be absorbed. API
grit_lib::revwalk::history::UndoMode enum Whether History::undo_last moves refs or only reports what it would do. API
grit_lib::revwalk::history::UndoOutcome struct Result of History::undo_last. API
grit_lib::revwalk::log_walk module Log-order revision walking helpers re-exported at this path. API
grit_lib::revwalk::log_walk::LogWalkCursor struct Opaque continuation token for paged grit log history walks. API
grit_lib::revwalk::log_walk::LogWalkPage struct One page of commits plus an optional continuation cursor. API
grit_lib::revwalk::log_walk::LogWalkQuery struct Tips, exclusions, and date cutoffs for a resumable date-order log walk. API
grit_lib::revwalk::log_walk::WalkedCommits struct Commit objects a log walk already read, kept as raw object bytes and parsed when taken. API
grit_lib::revwalk::merge_base module merge_base API (re-exported at this path). API
grit_lib::revwalk::merge_base::ReachableCountFilter struct Filters applied when counting reachable commits (parent count and committer dates). API
grit_lib::revwalk::merge_base::ReachableWalkCommitterCutoffs struct Commits reachable from tips that are not ancestors of any hide tip, in committer-date order (newest first). API
grit_lib::revwalk::merge_base::ReachableWalkLimit enum How RevWalk::reachable_excluding bounds its output. API
grit_lib::revwalk::object_inspect module Typed revision resolution and object display payloads. API
grit_lib::revwalk::object_inspect::ObjectContents enum Parsed object payload for display or serialization. API
grit_lib::revwalk::object_inspect::OidAbbrevBatch struct Memoized collision-aware abbreviations for a batch of known-present object ids. API
grit_lib::revwalk::object_inspect::ResolveError enum Failure resolving a revision spec for object inspection. API
grit_lib::revwalk::object_inspect::ResolvedObject struct Result of resolving one revision spec to a concrete object. API
grit_lib::revwalk::object_inspect::ResolvedRefName struct Full and shortened ref names for a spec (rev-parse --symbolic-full-name / --abbrev-ref). API
grit_lib::revwalk::object_inspect::RevisionLabel enum A branch or tag label for a revision, independent of its display format. API
grit_lib::revwalk::rev_list module rev_list API (re-exported at this path). API
grit_lib::revwalk::rev_list::CherryMatch struct Commits on the two sides of a symmetric range (A...B) that share one patch-id. API
grit_lib::revwalk::rev_list::CommitExtent enum How much of each commit object a walk reads and hands back to its caller. API
grit_lib::revwalk::rev_list::FilterObjectKind enum Kind selector for object:type= filters. API
grit_lib::revwalk::rev_list::LogGraphLinkage struct Parents and subjects collected during a bounded --graph rev-list walk. API
grit_lib::revwalk::rev_list::MissingAction enum Behavior when reachable objects are missing. API
grit_lib::revwalk::rev_list::ObjectFilter enum Object filter specification for --filter=. API
grit_lib::revwalk::rev_list::ObjectFilterError enum Why a --filter= value could not be parsed (ObjectFilter::parse). API
grit_lib::revwalk::rev_list::OrderingMode enum Ordering mode for commit output. API
grit_lib::revwalk::rev_list::RevListOptions struct Parsed and normalized options for rev-list traversal. API
grit_lib::revwalk::rev_list::RevListResult struct Final commit selection result. API
grit_lib::revwalk::rev_list_error module Typed rev-list failures surfaced on crate::revwalk::RevWalk. API
grit_lib::revwalk::rev_list_error::RevListError enum Failure modes when walking revisions or parsing rev-list options. API
grit_lib::revwalk::rev_parse module rev_parse API (re-exported at this path). API
grit_lib::revwalk::rev_parse::IndexColonSpec struct Parsed :path / :N:path index revision syntax (leading colon, not :/search). API
grit_lib::revwalk::rev_parse::TreeishBlobAtPath struct Resolved blob (non-tree) at treeish:path for diff plumbing. API
grit_lib::revwalk::rev_parse_error module Typed revision parsing failures. API
grit_lib::revwalk::rev_parse_error::AmbiguousChangeIdHint struct One commit when a change-id lookup is ambiguous. API
grit_lib::revwalk::rev_parse_error::AmbiguousObjectHint struct One candidate line when a short object id is ambiguous. API
grit_lib::revwalk::rev_parse_error::RevParseError enum Failure modes when resolving revision specs, upstream/push refs, paths, and reflogs. API
grit_lib::stash module Stash stack read/write — stable types for RepositoryStash. API
grit_lib::stash::CorruptStashReason enum Why a stash commit object cannot be interpreted for apply, show, or branch. API
grit_lib::stash::FlatTreeEntry struct A single blob entry from a recursively flattened tree. API
grit_lib::stash::StashApplyOptions struct Options for RepositoryStash::apply and RepositoryStash::pop. API
grit_lib::stash::StashApplyOutcome struct Result of RepositoryStash::apply, RepositoryStash::apply_commit, and RepositoryStash::pop. API
grit_lib::stash::StashBranchOutcome struct Result of RepositoryStash::branch. API
grit_lib::stash::StashDiffOptions struct Options for RepositoryStash::diff. API
grit_lib::stash::StashEntry struct One entry from RepositoryStash::list (stash@{{index}} in newest-first order). API
grit_lib::stash::StashError enum Stash list, push, apply, pop, drop, and branch failures. API
grit_lib::stash::StashMode enum Which local changes a stash push saves and how the worktree/index are left afterward. API
grit_lib::stash::StashPreview struct Paths that would be recorded by RepositoryStash::preview. API
grit_lib::stash::StashPushOptions struct Options for RepositoryStash::push, RepositoryStash::create, and RepositoryStash::preview. API
grit_lib::stash::StashPushResult struct Result of a successful RepositoryStash::push. API
grit_lib::stash::StashPushValidationError enum Incompatible super::stash::StashPushOptions flag combinations. API
grit_lib::stash::StashReference enum How to address a stash entry or a stash-shaped commit. 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::NextStep enum A suggested follow-up action while an operation is paused. API
grit_lib::state::Operation struct In-progress operation plus the steps grit can suggest today. API
grit_lib::state::WtStatusState struct Snapshot of repository state used by git status long-format output (wt-status.c). API
grit_lib::status module Working-tree status for one repository (Status from Repository::status). API
grit_lib::status::Status struct Compute staged, unstaged, untracked, and ignored paths for one repository. API
grit_lib::status::StatusSummary struct Typed dashboard outcome: worktree model plus branch standing and follow-up guidance. API
grit_lib::status::StatusSummaryOptions struct Options for super::Status::assemble_summary. API
grit_lib::status::UntrackedCachePolicy enum Whether untracked collection may refresh and read the index UNTR extension. API
grit_lib::status::UntrackedOptions struct Options for Status::untracked and related untracked walks. API
grit_lib::tree_sha256 module SHA-256 tree digest over repository file contents (tree-sha256 spec). API
grit_lib::tree_sha256::MissingSubmodule struct One submodule that blocked hashing. API
grit_lib::tree_sha256::MissingSubmoduleReason enum Why a submodule could not be hashed. API
grit_lib::tree_sha256::SignatureVerdict enum Signature verification outcome for a tag object. API
grit_lib::tree_sha256::TagTreeSha256Outcome struct Tree-sha256 digest, counts, and timing from explicit tag creation (CreateTagRequest::tree_sha256). API
grit_lib::tree_sha256::TagVerification struct Combined signature and tree-sha256 verification outcome. API
grit_lib::tree_sha256::TagVerifyOptions struct Options for verify_tag. API
grit_lib::tree_sha256::TreeSha256 struct 32-byte tree-sha256 digest. API
grit_lib::tree_sha256::TreeSha256Claim struct Digest and excluded submodule paths recorded on an annotated tag. API
grit_lib::tree_sha256::TreeSha256ClaimError enum Failure modes when reading or validating a TreeSha256Claim from tag headers. API
grit_lib::tree_sha256::TreeSha256Options struct Submodule exclusion and glob options for Repository::tree_sha256. API
grit_lib::tree_sha256::TreeSha256Report struct Outcome of a successful tree-sha256 computation. API
grit_lib::tree_sha256::TreeSha256TagHeaders struct Parsed tree-sha256-related headers from a raw annotated tag object. API
grit_lib::tree_sha256::TreeSha256Verdict struct Recomputed tree-sha256 compared to the tag header claim. API
grit_lib::worktree module Working tree, ignore/attributes, and checkout path helpers. API
grit_lib::worktree::AddLinkedWorktreeOptions struct Options for RepositoryWorktrees::add. API
grit_lib::worktree::LinkedWorktreeError enum Linked worktree registry failures (add, remove, move, lock, repair). API
grit_lib::worktree::LinkedWorktreeOperation enum Linked worktree mutation that was pointed at the main working tree. API
grit_lib::worktree::LockWorktreeOptions struct Options for locking during RepositoryWorktrees::add or Worktrees::lock. API
grit_lib::worktree::MoveWorktreeOptions struct Options for [move_linked_worktree]. API
grit_lib::worktree::PrunableReason enum Why Git marks a linked worktree as prunable in worktree list --porcelain. API
grit_lib::worktree::PruneWorktreesOptions struct Options for [prune_linked_worktrees]. API
grit_lib::worktree::PrunedWorktreeEntry struct One linked worktree removed or that would be removed by [prune_linked_worktrees]. API
grit_lib::worktree::WorktreeBranch enum How RepositoryWorktrees::add attaches HEAD to a branch. API
grit_lib::worktree::WorktreeEntry struct One row returned by [list_worktrees]. API
grit_lib::worktree::WorktreeError enum Worktree-area failure (checkout, status, add/rm/mv/restore/clean, pathspec, filters, linked worktrees). API
grit_lib::worktree::WorktreeRepair struct One repair action recorded by [repair_worktrees]. API
grit_lib::worktree::WorktreeRepairKind enum What [repair_worktrees] fixed for one worktree path. API
grit_lib::worktree::attributes module attributes API (re-exported at this path). API
grit_lib::worktree::attributes::AttrRule struct One line in a gitattributes file. API
grit_lib::worktree::attributes::AttrValue enum Parsed attribute value for display (check-attr output). API
grit_lib::worktree::attributes::MacroTable struct Macro definitions from [attr]name ... API
grit_lib::worktree::attributes::ParsedGitAttributes struct Result of parsing a gitattributes file. API
grit_lib::worktree::crlf module crlf API (re-exported at this path). API
grit_lib::worktree::crlf::AutoCrlf enum What core.autocrlf is set to. API
grit_lib::worktree::crlf::ConversionConfig struct Global conversion settings derived from config. API
grit_lib::worktree::crlf::ConvertToGitOpts struct Optional inputs for convert_to_git_with_opts (Git CONV_EOL_RENORMALIZE / index blob). API
grit_lib::worktree::crlf::CoreEol enum What core.eol is set to. API
grit_lib::worktree::crlf::CrlfLegacyAttr enum Legacy crlf gitattribute (deprecated in Git; still honored for EOL conversion). API
grit_lib::worktree::crlf::DiffAttr enum How the diff gitattribute affects diff output. API
grit_lib::worktree::crlf::EolAttr enum Per-file eol attribute from .gitattributes. API
grit_lib::worktree::crlf::FileAttrs struct Per-file attributes relevant to conversion. API
grit_lib::worktree::crlf::MergeAttr enum Per-file merge attribute from .gitattributes. API
grit_lib::worktree::crlf::SafeCrlf enum What core.safecrlf is set to. API
grit_lib::worktree::crlf::TextAttr enum Per-file text attribute from .gitattributes. API
grit_lib::worktree::fsmonitor module fsmonitor API (re-exported at this path). API
grit_lib::worktree::fsmonitor::FsmonitorQueryBoundary struct Nanoseconds since the Unix epoch, sampled immediately before a fsmonitor hook query. API
grit_lib::worktree::ignore module ignore API (re-exported at this path). API
grit_lib::worktree::ignore::IgnoreCheck struct Result of checking one path against repository ignore rules. API
grit_lib::worktree::ignore::IgnoreMatch struct Metadata for a matching rule. API
grit_lib::worktree::ignore::IgnoreMatcher struct Engine used to evaluate ignore patterns against repository-relative paths. API
grit_lib::worktree::ignore::IgnorePatternList struct Patterns parsed from one exclude file (such as a .gitignore), for matching single paths. API
grit_lib::worktree::ignore::IgnorePatternMatch struct The pattern that decided an IgnorePatternList::last_match query. API
grit_lib::worktree::ignore::IgnoreSource enum Where an ignore pattern was loaded from. API
grit_lib::worktree::ignore::RepoPathNormalizer struct Converts user-supplied paths, relative to one working directory, into normalized repository-relative paths (as normalize_repo_relative does for a single path). API
grit_lib::worktree::pathspec module pathspec API (re-exported at this path). API
grit_lib::worktree::pathspec::PathspecFile struct Raw bytes for [ResolvedPathspecs::resolve] from --pathspec-from-file (read by the caller). API
grit_lib::worktree::pathspec::PathspecGlobalFlags struct Git global pathspec mode flags (GIT_LITERAL_PATHSPECS, GIT_GLOB_PATHSPECS, …). API
grit_lib::worktree::pathspec::PathspecGlobalsError enum Global pathspec flags (GIT_*_PATHSPECS) that cannot be combined. API
grit_lib::worktree::pathspec::PathspecOptions struct Options for building a Pathspec (Pathspec::parse or Repository::pathspec). API
grit_lib::worktree::pathspec::PathspecParseError enum Errors while assembling pathspec argv / from-file tokens (before work-tree resolution). API
grit_lib::worktree::wildmatch module wildmatch API (re-exported at this path). API
grit_lib::worktree::worktree_cwd module worktree_cwd API (re-exported at this path). API
grit_lib::worktree::worktree_ref module worktree_ref API (re-exported at this path). API
grit_lib::worktree::worktree_ref::RefWorktreeType enum How a ref name maps to on-disk storage across worktrees. API
grit_lib::worktree::worktree_rules module worktree_rules API (re-exported at this path). API
grit_lib::worktree::worktree_rules::WorktreeRules struct Attribute/ignore/conversion state shared across one porcelain operation. API