16 breaking releases

0.17.0 Jan 18, 2025
0.16.0 Dec 22, 2024
0.15.0 Nov 24, 2024
0.11.0 Jul 23, 2024
0.2.0 Oct 12, 2023

#2250 in Development tools

Download history 5056/week @ 2024-10-29 3929/week @ 2024-11-05 4116/week @ 2024-11-12 4858/week @ 2024-11-19 5750/week @ 2024-11-26 5162/week @ 2024-12-03 5054/week @ 2024-12-10 5422/week @ 2024-12-17 4353/week @ 2024-12-24 5470/week @ 2024-12-31 6048/week @ 2025-01-07 5944/week @ 2025-01-14 6856/week @ 2025-01-21 5929/week @ 2025-01-28 6384/week @ 2025-02-04 11869/week @ 2025-02-11

32,216 downloads per month
Used in 6 crates (2 directly)

MIT/Apache

1MB
18K SLoC

This crate includes the various diffs git can do between different representations of the repository state, like comparisons between…

  • index and working tree
  • tree and index

…while also being able to check if the working tree is dirty, quickly, by instructing the operation to stop once the first change was found.

Tree-Index Status

This status is not actually implemented here as it's not implemented directly. Instead, one creates an Index from a tree and then diffs two indices with gix_diff::index(index_from_tree, usually_dot_git_index). This adds about 15% to the runtime and comes at the cost of another index in memory. Once there are generators implementing depth-first tree iteration should become trivial, but for now it's very hard if one wants to return referenced state of the iterator (which is not possible).

Difference to gix-diff

Technically, status is just another form of diff between different kind of sides, i.e. an index and a working tree. This is the difference to gix-diff, which compares only similar items.

Feature Flags

Dependencies

~15–26MB
~457K SLoC

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy