Crate gix_worktree
source ·Expand description
A crate with all index-centric functionality that is interacting with a worktree.
Unless specified differently, all operations need an index file (e.g. .git/index) as driver.
Feature Flags
serde— Data structures implementserde::Serializeandserde::Deserialize.
Modules
- This module allows creating git blobs from worktree files.
- Changes between an index and a worktree.
Structs
- A cache for efficiently executing operations on directories and files which are encountered in sorted order. That way, these operations can be re-used for subsequent invocations in the same directory.
Functions
- Note that interruption still produce an
Ok(…)value, so the caller should look atshould_interruptto communicate the outcome.diris the directory into which to checkout theindex.git_diris the.gitdirectory for reading additional per-repository configuration files. - Calculates the changes that need to be applied to an
indexto match the state of theworktreeand makes them observable incollector, along with information produced bycomparewhich gets to see blobs that may have changes.optionsare used to configure the operation.