Docs.rs
  • gix-diff-0.52.1
    • gix-diff 0.52.1
    • Permalink
    • Docs.rs crate page
    • MIT OR Apache-2.0
    • Links
    • Repository
    • crates.io
    • Source
    • Owners
    • Byron
    • Dependencies
      • bstr ^1.12.0 normal
      • document-features ^0.2.0 normal optional
      • getrandom ^0.2.8 normal optional
      • gix-attributes ^0.26.0 normal optional
      • gix-command ^0.6.0 normal optional
      • gix-filter ^0.19.1 normal optional
      • gix-fs ^0.15.0 normal optional
      • gix-hash ^0.18.0 normal
      • gix-index ^0.40.0 normal optional
      • gix-object ^0.49.1 normal
      • gix-path ^0.10.17 normal optional
      • gix-pathspec ^0.11.0 normal optional
      • gix-tempfile ^17.1.0 normal optional
      • gix-trace ^0.1.12 normal optional
      • gix-traverse ^0.46.1 normal optional
      • gix-worktree ^0.41.0 normal optional
      • imara-diff ^0.1.7 normal optional
      • serde ^1.0.114 normal optional
      • thiserror ^2.0.0 normal
    • Versions
    • 100% of the crate is documented
  • Platform
    • i686-pc-windows-msvc
    • i686-unknown-linux-gnu
    • x86_64-apple-darwin
    • x86_64-pc-windows-msvc
    • x86_64-unknown-linux-gnu
  • Feature flags
  • Rust
    • About docs.rs
    • Privacy policy
    • Rust website
    • The Book
    • Standard Library API Reference
    • Rust by Example
    • The Cargo Guide
    • Clippy Documentation

Crate gix_diff

gix_diff0.52.1

  • All Items

Sections

  • Feature Flags

Crate Items

  • Re-exports
  • Modules
  • Structs
  • Functions

Crates

  • gix_diff

Crate gix_diff

Source
Expand description

Algorithms for diffing various git object types and for generating patches, highly optimized for performance.

§Feature Flags

  • blob (enabled by default) — Enable diffing of blobs using imara-diff.
  • index (enabled by default) — Enable diffing of two indices, which also allows for a generic rewrite tracking implementation.
  • serde — Data structures implement serde::Serialize and serde::Deserialize.
  • wasm — Make it possible to compile to the wasm32-unknown-unknown target.

Re-exports§

pub use gix_command as command;blob
pub use gix_object as object;blob

Modules§

blobblob
For using text diffs, please have a look at the imara-diff documentation, maintained by Pascal Kuthe.
indexindex
rewritesblob
Contains a Tracker to detect rewrites.
tree
tree_with_rewritesblob

Structs§

Rewritesblob
A structure to capture how to perform rename and copy tracking, used by the rewrites::Tracker.

Functions§

indexindex
Produce an entry-by-entry diff between lhs and rhs, sending changes to cb(change) -> Action for consumption, which would turn lhs into rhs if applied. Use pathspec to reduce the set of entries to look at, and pathspec_attributes may be used by pathspecs that perform attribute lookups.
tree
Calculate the changes that would need to be applied to lhs to get rhs using objects to obtain objects as needed for traversal. state can be used between multiple calls to re-use memory.
tree_with_rewritesblob
Call for_each repeatedly with all changes that are needed to convert lhs to rhs. Provide a resource_cache to speed up obtaining blobs for similarity checks. tree_diff_state can be used to re-use tree-diff memory between calls. objects are used to lookup trees while performing the diff. Use options to further configure how the rename tracking is performed.

Results

Settings
Help

Query parser error: "Unexpected 8 (not a valid identifier)".