Expand description
This crate includes the various diffs git
can do between different representations
of the repository state, like comparisons between…
- index and working tree
- index and tree
- find untracked files
While also being able to check check if the working tree is dirty, quickly.
§Feature Flags
worktree-rewrites
— Add support for tracking rewrites along with checking for worktree modifications.
Modules§
- Changes between an index and a worktree.
- index_
as_ worktree_ with_ renames worktree-rewrites
Changes between the index and the worktree along with optional rename tracking.
Structs§
- A stack that validates we are not going through a symlink in a way that is read-only.
Functions§
- Calculates the changes that need to be applied to an
index
to match the state of theworktree
and makes them observable incollector
, along with information produced bycompare
which gets to see blobs that may have changes, andsubmodule
which can take a look at submodules in detail to produce status information (BASE version if its conflicting).options
are used to configure the operation. - index_
as_ worktree_ with_ renames worktree-rewrites
Similar toindex_as_worktree(…)
, except that it will automatically track renames if enabled, while additionally providing information about untracked files (or more, depending on the configuration).