summaryrefslogtreecommitdiffstats
path: root/vendor/gix-diff
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/gix-diff')
-rw-r--r--vendor/gix-diff/.cargo-checksum.json2
-rw-r--r--vendor/gix-diff/CHANGELOG.md1109
-rw-r--r--vendor/gix-diff/Cargo.toml56
-rw-r--r--vendor/gix-diff/LICENSE-MIT2
-rw-r--r--vendor/gix-diff/src/blob.rs3
-rw-r--r--vendor/gix-diff/src/blob/mod.rs133
-rw-r--r--vendor/gix-diff/src/blob/pipeline.rs538
-rw-r--r--vendor/gix-diff/src/blob/platform.rs619
-rw-r--r--vendor/gix-diff/src/lib.rs41
-rw-r--r--vendor/gix-diff/src/rewrites/mod.rs71
-rw-r--r--vendor/gix-diff/src/rewrites/tracker.rs620
-rw-r--r--vendor/gix-diff/src/tree/changes.rs63
-rw-r--r--vendor/gix-diff/src/tree/visit.rs40
13 files changed, 2129 insertions, 1168 deletions
diff --git a/vendor/gix-diff/.cargo-checksum.json b/vendor/gix-diff/.cargo-checksum.json
index be0a727fb..2d73c1a8c 100644
--- a/vendor/gix-diff/.cargo-checksum.json
+++ b/vendor/gix-diff/.cargo-checksum.json
@@ -1 +1 @@
-{"files":{"CHANGELOG.md":"bab6defc9b6df696bf60f4ff7e1b8a962ba9eec62c46d02035dc69087c3deabd","Cargo.toml":"191601bc8eab8717eb45936e1c9bd540ea2b20ec4d162fca4289cf27920939fb","LICENSE-APACHE":"cb4780590812826851ba250f90bed0ed19506ec98f6865a0e2e20bbf62391ff9","LICENSE-MIT":"49df47913ab2beafe8dc45607877ae64198bf0eee64aaad3e82ed9e4d27424e8","src/blob.rs":"2ee987cc738042ed3d5a001943685abe8692a49a3a1c253a0f6fd96702c35240","src/lib.rs":"dad21febb5a349ad70e4b79b980c54038a57bf28ed114c3ac5a3054cc953f560","src/tree/changes.rs":"ca134d8abf6934416002658da0724a4150b074de70b9ed5f03d5a71344649cb0","src/tree/mod.rs":"a1d7fe6b23bd76b37d3f29fc358e049abfbea46d2707cd6727b8622cd8393261","src/tree/recorder.rs":"9170902868720607ad18c25a81a2ac172c4ce641f632fd6b9408538d98b47f71","src/tree/visit.rs":"823ca26b1658ed101da8ae400d481b3008670aeb3ff72680a29f8b2bc5029ba1"},"package":"931394f69fb8c9ed6afc0aae3487bd869e936339bcc13ed8884472af072e0554"} \ No newline at end of file
+{"files":{"Cargo.toml":"bed092c3ab2212c313f0eea93bb09622fdf2ab4e350ed5aaca2f08737942dd75","LICENSE-APACHE":"cb4780590812826851ba250f90bed0ed19506ec98f6865a0e2e20bbf62391ff9","LICENSE-MIT":"6f610e51b59dfbcbee281f58cc6d963bf716199dc7384dbaa94ccc3a6e343ce6","src/blob/mod.rs":"63ac9efc243b49179180e6a22a5f11fa68551333bdee5fcf6abfcb4523482966","src/blob/pipeline.rs":"45fe86586ab7af5046524183ae8134ea2f534ff9ba190777769ca64c3d5d1547","src/blob/platform.rs":"149fca8932a249f14b870e41bbb66c63c7c97d16a5e0d2abcc2217ffc4e48467","src/lib.rs":"9ef1724ef579791d5a10b43c9f071072568fc0bd3a56efd9b1e2f178a4e01eef","src/rewrites/mod.rs":"79d65f9411d38622f25a36dd24438bd2a5c39d1ed70b37102644eef2cc3a3756","src/rewrites/tracker.rs":"52117b8f33bc8c89488bac244df606d6ad742ee72b932ee90576f6027d47687e","src/tree/changes.rs":"999772de50dafc143e4da55a5d3da19ca0ae894f96cbfbbd34d30abc7d36749e","src/tree/mod.rs":"a1d7fe6b23bd76b37d3f29fc358e049abfbea46d2707cd6727b8622cd8393261","src/tree/recorder.rs":"9170902868720607ad18c25a81a2ac172c4ce641f632fd6b9408538d98b47f71","src/tree/visit.rs":"d20a5ec1cf093c91b93443d4ee2fef74c184021f929c36015219f67d8d95d96c"},"package":"8119a985887cfe68f4bdf92e51bd64bc758a73882d82fcfc03ebcb164441c85d"} \ No newline at end of file
diff --git a/vendor/gix-diff/CHANGELOG.md b/vendor/gix-diff/CHANGELOG.md
deleted file mode 100644
index d7e06008b..000000000
--- a/vendor/gix-diff/CHANGELOG.md
+++ /dev/null
@@ -1,1109 +0,0 @@
-# Changelog
-
-All notable changes to this project will be documented in this file.
-
-The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
-and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
-
-## 0.37.0 (2023-10-12)
-
-A maintenance release without user-facing changes.
-
-### Commit Statistics
-
-<csr-read-only-do-not-edit/>
-
- - 2 commits contributed to the release over the course of 6 calendar days.
- - 17 days passed between releases.
- - 0 commits were understood as [conventional](https://www.conventionalcommits.org).
- - 0 issues like '(#ID)' were seen in commit messages
-
-### Commit Details
-
-<csr-read-only-do-not-edit/>
-
-<details><summary>view details</summary>
-
- * **Uncategorized**
- - Prepare changelogs prior to release ([`1347a54`](https://github.com/Byron/gitoxide/commit/1347a54f84599d8f0aa935d6e64b16c2298d25cf))
- - Fix docs ([`995bc84`](https://github.com/Byron/gitoxide/commit/995bc840664cbd4aeb7f95592e3125dee63bdcd4))
-</details>
-
-## 0.36.0 (2023-09-24)
-
-A maintenance release without user-facing changes.
-
-### Commit Statistics
-
-<csr-read-only-do-not-edit/>
-
- - 2 commits contributed to the release.
- - 16 days passed between releases.
- - 0 commits were understood as [conventional](https://www.conventionalcommits.org).
- - 0 issues like '(#ID)' were seen in commit messages
-
-### Commit Details
-
-<csr-read-only-do-not-edit/>
-
-<details><summary>view details</summary>
-
- * **Uncategorized**
- - Release gix-features v0.35.0, gix-actor v0.27.0, gix-object v0.37.0, gix-glob v0.13.0, gix-attributes v0.19.0, gix-filter v0.5.0, gix-fs v0.7.0, gix-commitgraph v0.21.0, gix-revwalk v0.8.0, gix-traverse v0.33.0, gix-worktree-stream v0.5.0, gix-archive v0.5.0, gix-tempfile v10.0.0, gix-lock v10.0.0, gix-ref v0.37.0, gix-config v0.30.0, gix-url v0.24.0, gix-credentials v0.20.0, gix-diff v0.36.0, gix-discover v0.25.0, gix-ignore v0.8.0, gix-index v0.25.0, gix-mailmap v0.19.0, gix-negotiate v0.8.0, gix-pack v0.43.0, gix-odb v0.53.0, gix-pathspec v0.3.0, gix-transport v0.37.0, gix-protocol v0.40.0, gix-revision v0.22.0, gix-refspec v0.18.0, gix-status v0.1.0, gix-submodule v0.4.0, gix-worktree v0.26.0, gix-worktree-state v0.3.0, gix v0.54.0, gitoxide-core v0.32.0, gitoxide v0.30.0, safety bump 37 crates ([`7891fb1`](https://github.com/Byron/gitoxide/commit/7891fb17348ec2f4c997665f9a25be36e2713da4))
- - Prepare changelogs prior to release ([`8a60d5b`](https://github.com/Byron/gitoxide/commit/8a60d5b80877c213c3b646d3061e8a33e0e433ec))
-</details>
-
-## 0.35.0 (2023-09-08)
-
-### Bug Fixes (BREAKING)
-
- - <csr-id-072ee32f693a31161cd6a843da6582d13efbb20b/> use `dyn` trait where possible.
- This reduces compile time due to avoiding duplication.
-
-### Commit Statistics
-
-<csr-read-only-do-not-edit/>
-
- - 5 commits contributed to the release over the course of 17 calendar days.
- - 17 days passed between releases.
- - 1 commit was understood as [conventional](https://www.conventionalcommits.org).
- - 0 issues like '(#ID)' were seen in commit messages
-
-### Commit Details
-
-<csr-read-only-do-not-edit/>
-
-<details><summary>view details</summary>
-
- * **Uncategorized**
- - Release gix-date v0.8.0, gix-hash v0.13.0, gix-features v0.34.0, gix-actor v0.26.0, gix-object v0.36.0, gix-path v0.10.0, gix-glob v0.12.0, gix-attributes v0.18.0, gix-packetline-blocking v0.16.6, gix-filter v0.4.0, gix-fs v0.6.0, gix-commitgraph v0.20.0, gix-hashtable v0.4.0, gix-revwalk v0.7.0, gix-traverse v0.32.0, gix-worktree-stream v0.4.0, gix-archive v0.4.0, gix-config-value v0.14.0, gix-tempfile v9.0.0, gix-lock v9.0.0, gix-ref v0.36.0, gix-sec v0.10.0, gix-config v0.29.0, gix-prompt v0.7.0, gix-url v0.23.0, gix-credentials v0.19.0, gix-diff v0.35.0, gix-discover v0.24.0, gix-ignore v0.7.0, gix-index v0.24.0, gix-macros v0.1.0, gix-mailmap v0.18.0, gix-negotiate v0.7.0, gix-pack v0.42.0, gix-odb v0.52.0, gix-pathspec v0.2.0, gix-packetline v0.16.6, gix-transport v0.36.0, gix-protocol v0.39.0, gix-revision v0.21.0, gix-refspec v0.17.0, gix-submodule v0.3.0, gix-worktree v0.25.0, gix-worktree-state v0.2.0, gix v0.53.0, safety bump 39 crates ([`8bd0456`](https://github.com/Byron/gitoxide/commit/8bd045676bb2cdc02624ab93e73ff8518064ca38))
- - Prepare changelogs for release ([`375db06`](https://github.com/Byron/gitoxide/commit/375db06a8442378c3f7a922fae38e2a6694d9d04))
- - Merge branch `dyn`ification ([`f658fcc`](https://github.com/Byron/gitoxide/commit/f658fcc52dc2200ae34ca53dc10be97fb9012057))
- - Use `dyn` trait where possible. ([`072ee32`](https://github.com/Byron/gitoxide/commit/072ee32f693a31161cd6a843da6582d13efbb20b))
- - Merge branch 'gix-submodule' ([`363ee77`](https://github.com/Byron/gitoxide/commit/363ee77400805f473c9ad66eadad9214e7ab66f4))
-</details>
-
-## 0.34.0 (2023-08-22)
-
-### New Features
-
- - <csr-id-7766cf91d28fe9a602048bd15a49632752173604/> make blob-diffing a feature so it can be turned off by adding the `blob` feature (enabled by default)
-
-### Commit Statistics
-
-<csr-read-only-do-not-edit/>
-
- - 8 commits contributed to the release over the course of 15 calendar days.
- - 30 days passed between releases.
- - 1 commit was understood as [conventional](https://www.conventionalcommits.org).
- - 0 issues like '(#ID)' were seen in commit messages
-
-### Commit Details
-
-<csr-read-only-do-not-edit/>
-
-<details><summary>view details</summary>
-
- * **Uncategorized**
- - Release gix-url v0.22.0, gix-credentials v0.18.0, gix-diff v0.34.0, gix-discover v0.23.0, gix-ignore v0.6.0, gix-bitmap v0.2.7, gix-index v0.22.0, gix-mailmap v0.17.0, gix-negotiate v0.6.0, gix-pack v0.41.0, gix-odb v0.51.0, gix-pathspec v0.1.0, gix-packetline v0.16.5, gix-transport v0.35.0, gix-protocol v0.38.0, gix-revision v0.20.0, gix-refspec v0.16.0, gix-submodule v0.2.0, gix-worktree v0.24.0, gix-worktree-state v0.1.0, gix v0.52.0, gitoxide-core v0.31.0, gitoxide v0.29.0 ([`6c62e74`](https://github.com/Byron/gitoxide/commit/6c62e748240ac0980fc23fdf30f8477dea8b9bc3))
- - Release gix-date v0.7.3, gix-hash v0.12.0, gix-features v0.33.0, gix-actor v0.25.0, gix-object v0.35.0, gix-path v0.9.0, gix-glob v0.11.0, gix-quote v0.4.7, gix-attributes v0.17.0, gix-command v0.2.9, gix-packetline-blocking v0.16.5, gix-filter v0.3.0, gix-fs v0.5.0, gix-commitgraph v0.19.0, gix-hashtable v0.3.0, gix-revwalk v0.6.0, gix-traverse v0.31.0, gix-worktree-stream v0.3.0, gix-archive v0.3.0, gix-config-value v0.13.0, gix-tempfile v8.0.0, gix-lock v8.0.0, gix-ref v0.35.0, gix-sec v0.9.0, gix-config v0.28.0, gix-prompt v0.6.0, gix-url v0.22.0, gix-credentials v0.18.0, gix-diff v0.34.0, gix-discover v0.23.0, gix-ignore v0.6.0, gix-bitmap v0.2.7, gix-index v0.22.0, gix-mailmap v0.17.0, gix-negotiate v0.6.0, gix-pack v0.41.0, gix-odb v0.51.0, gix-pathspec v0.1.0, gix-packetline v0.16.5, gix-transport v0.35.0, gix-protocol v0.38.0, gix-revision v0.20.0, gix-refspec v0.16.0, gix-submodule v0.2.0, gix-worktree v0.24.0, gix-worktree-state v0.1.0, gix v0.52.0, gitoxide-core v0.31.0, gitoxide v0.29.0, safety bump 41 crates ([`30b2761`](https://github.com/Byron/gitoxide/commit/30b27615047692d3ced1b2d9c2ac15a80f79fbee))
- - Update changelogs prior to release ([`f23ea88`](https://github.com/Byron/gitoxide/commit/f23ea8828f2d9ba7559973daca388c9591bcc5fc))
- - Merge branch 'gix-submodule' ([`8f3f358`](https://github.com/Byron/gitoxide/commit/8f3f358800f1fe77d7ba7ebd396a90b692d3c0c1))
- - More cleanup of test crates ([`73c685a`](https://github.com/Byron/gitoxide/commit/73c685a67debcfa26a940f37bbca69cb3a4af57e))
- - Merge branch 'worktree-organization' ([`8d0d8e0`](https://github.com/Byron/gitoxide/commit/8d0d8e005d7f11924a6717954d892aae5cec45e7))
- - Make blob-diffing a feature so it can be turned off by adding the `blob` feature (enabled by default) ([`7766cf9`](https://github.com/Byron/gitoxide/commit/7766cf91d28fe9a602048bd15a49632752173604))
- - Release gix-glob v0.10.2, gix-date v0.7.2, gix-validate v0.8.0, gix-object v0.34.0, gix-ref v0.34.0, gix-config v0.27.0, gix-commitgraph v0.18.2, gix-revwalk v0.5.0, gix-revision v0.19.0, gix-refspec v0.15.0, gix-submodule v0.1.0, safety bump 18 crates ([`4604f83`](https://github.com/Byron/gitoxide/commit/4604f83ef238dc07c85aaeae097399b67f3cfd0c))
-</details>
-
-## 0.33.1 (2023-07-22)
-
-A maintenance release without user-facing changes.
-
-### Commit Statistics
-
-<csr-read-only-do-not-edit/>
-
- - 7 commits contributed to the release over the course of 1 calendar day.
- - 3 days passed between releases.
- - 0 commits were understood as [conventional](https://www.conventionalcommits.org).
- - 0 issues like '(#ID)' were seen in commit messages
-
-### Commit Details
-
-<csr-read-only-do-not-edit/>
-
-<details><summary>view details</summary>
-
- * **Uncategorized**
- - Release gix-diff v0.33.1, gix-discover v0.22.1, gix-ignore v0.5.1, gix-bitmap v0.2.6, gix-index v0.21.1, gix-mailmap v0.16.1, gix-negotiate v0.5.1, gix-pack v0.40.1, gix-odb v0.50.1, gix-packetline v0.16.4, gix-transport v0.34.1, gix-protocol v0.36.1, gix-revision v0.18.1, gix-refspec v0.14.1, gix-worktree v0.23.0, gix v0.50.0 ([`0062971`](https://github.com/Byron/gitoxide/commit/00629710dffeb10fda340665530353703cf5d129))
- - Release gix-tempfile v7.0.2, gix-utils v0.1.5, gix-lock v7.0.2, gix-ref v0.33.1, gix-sec v0.8.4, gix-prompt v0.5.4, gix-url v0.21.1, gix-credentials v0.17.1, gix-diff v0.33.1, gix-discover v0.22.1, gix-ignore v0.5.1, gix-bitmap v0.2.6, gix-index v0.21.1, gix-mailmap v0.16.1, gix-negotiate v0.5.1, gix-pack v0.40.1, gix-odb v0.50.1, gix-packetline v0.16.4, gix-transport v0.34.1, gix-protocol v0.36.1, gix-revision v0.18.1, gix-refspec v0.14.1, gix-worktree v0.23.0, gix v0.50.0 ([`107a64e`](https://github.com/Byron/gitoxide/commit/107a64e734580ad9e2c4142db96394529d8072df))
- - Release gix-features v0.32.1, gix-actor v0.24.1, gix-validate v0.7.7, gix-object v0.33.1, gix-path v0.8.4, gix-glob v0.10.1, gix-quote v0.4.6, gix-attributes v0.16.0, gix-command v0.2.8, gix-packetline-blocking v0.16.4, gix-filter v0.2.0, gix-fs v0.4.1, gix-chunk v0.4.4, gix-commitgraph v0.18.1, gix-hashtable v0.2.4, gix-revwalk v0.4.1, gix-traverse v0.30.1, gix-worktree-stream v0.2.0, gix-archive v0.2.0, gix-config-value v0.12.5, gix-tempfile v7.0.1, gix-utils v0.1.5, gix-lock v7.0.2, gix-ref v0.33.1, gix-sec v0.8.4, gix-prompt v0.5.4, gix-url v0.21.1, gix-credentials v0.17.1, gix-diff v0.33.1, gix-discover v0.22.1, gix-ignore v0.5.1, gix-bitmap v0.2.6, gix-index v0.21.1, gix-mailmap v0.16.1, gix-negotiate v0.5.1, gix-pack v0.40.1, gix-odb v0.50.1, gix-packetline v0.16.4, gix-transport v0.34.1, gix-protocol v0.36.1, gix-revision v0.18.1, gix-refspec v0.14.1, gix-worktree v0.23.0, gix v0.50.0, safety bump 5 crates ([`16295b5`](https://github.com/Byron/gitoxide/commit/16295b58e2581d2e8b8b762816f52baabe871c75))
- - Prepare more changelogs ([`c4cc5f2`](https://github.com/Byron/gitoxide/commit/c4cc5f261d29f712a101033a18293a97a9d4ae85))
- - Release gix-date v0.7.1, gix-hash v0.11.4, gix-trace v0.1.3, gix-features v0.32.0, gix-actor v0.24.0, gix-validate v0.7.7, gix-object v0.33.0, gix-path v0.8.4, gix-glob v0.10.0, gix-quote v0.4.6, gix-attributes v0.15.0, gix-command v0.2.7, gix-packetline-blocking v0.16.3, gix-filter v0.1.0, gix-fs v0.4.0, gix-chunk v0.4.4, gix-commitgraph v0.18.0, gix-hashtable v0.2.4, gix-revwalk v0.4.0, gix-traverse v0.30.0, gix-worktree-stream v0.2.0, gix-archive v0.2.0, gix-config-value v0.12.4, gix-tempfile v7.0.1, gix-utils v0.1.5, gix-lock v7.0.2, gix-ref v0.33.0, gix-sec v0.8.4, gix-prompt v0.5.3, gix-url v0.21.0, gix-credentials v0.17.0, gix-diff v0.33.0, gix-discover v0.22.0, gix-ignore v0.5.0, gix-bitmap v0.2.6, gix-index v0.21.0, gix-mailmap v0.16.0, gix-negotiate v0.5.0, gix-pack v0.40.0, gix-odb v0.50.0, gix-packetline v0.16.4, gix-transport v0.34.0, gix-protocol v0.36.0, gix-revision v0.18.0, gix-refspec v0.14.0, gix-worktree v0.22.0, gix v0.49.1 ([`5cb3589`](https://github.com/Byron/gitoxide/commit/5cb3589b74fc5376e02cbfe151e71344e1c417fe))
- - Update changelogs prior to release ([`2fc66b5`](https://github.com/Byron/gitoxide/commit/2fc66b55097ed494b72d1af939ba5561f71fde97))
- - Update license field following SPDX 2.1 license expression standard ([`9064ea3`](https://github.com/Byron/gitoxide/commit/9064ea31fae4dc59a56bdd3a06c0ddc990ee689e))
-</details>
-
-## 0.33.0 (2023-07-19)
-
-A maintenance release without user-facing changes.
-
-### Commit Statistics
-
-<csr-read-only-do-not-edit/>
-
- - 3 commits contributed to the release.
- - 19 days passed between releases.
- - 0 commits were understood as [conventional](https://www.conventionalcommits.org).
- - 0 issues like '(#ID)' were seen in commit messages
-
-### Commit Details
-
-<csr-read-only-do-not-edit/>
-
-<details><summary>view details</summary>
-
- * **Uncategorized**
- - Release gix-features v0.32.0, gix-actor v0.24.0, gix-glob v0.10.0, gix-attributes v0.15.0, gix-commitgraph v0.18.0, gix-config-value v0.12.4, gix-fs v0.4.0, gix-object v0.33.0, gix-ref v0.33.0, gix-config v0.26.0, gix-command v0.2.7, gix-url v0.21.0, gix-credentials v0.17.0, gix-diff v0.33.0, gix-discover v0.22.0, gix-filter v0.1.0, gix-ignore v0.5.0, gix-revwalk v0.4.0, gix-traverse v0.30.0, gix-index v0.21.0, gix-mailmap v0.16.0, gix-negotiate v0.5.0, gix-pack v0.40.0, gix-odb v0.50.0, gix-transport v0.34.0, gix-protocol v0.36.0, gix-revision v0.18.0, gix-refspec v0.14.0, gix-worktree v0.22.0, gix v0.49.0 ([`68ae3ff`](https://github.com/Byron/gitoxide/commit/68ae3ff9d642ec56f088a6a682a073dc16f4e8ca))
- - Adjust package versions (by cargo-smart-release) ([`c70e54f`](https://github.com/Byron/gitoxide/commit/c70e54f163c312c87753a506eeaad462e8579bfb))
- - Prepare changelogs prior to release ([`e4dded0`](https://github.com/Byron/gitoxide/commit/e4dded05138562f9737a7dcfb60570c55769486d))
-</details>
-
-## 0.32.0 (2023-06-29)
-
-A maintenance release without user-facing changes.
-
-### Commit Statistics
-
-<csr-read-only-do-not-edit/>
-
- - 2 commits contributed to the release.
- - 6 days passed between releases.
- - 0 commits were understood as [conventional](https://www.conventionalcommits.org).
- - 0 issues like '(#ID)' were seen in commit messages
-
-### Commit Details
-
-<csr-read-only-do-not-edit/>
-
-<details><summary>view details</summary>
-
- * **Uncategorized**
- - Release gix-date v0.7.0, gix-trace v0.1.2, gix-actor v0.23.0, gix-commitgraph v0.17.1, gix-utils v0.1.4, gix-object v0.32.0, gix-ref v0.32.0, gix-config v0.25.0, gix-diff v0.32.0, gix-discover v0.21.0, gix-hashtable v0.2.3, gix-revwalk v0.3.0, gix-traverse v0.29.0, gix-index v0.20.0, gix-mailmap v0.15.0, gix-negotiate v0.4.0, gix-pack v0.39.0, gix-odb v0.49.0, gix-protocol v0.35.0, gix-revision v0.17.0, gix-refspec v0.13.0, gix-worktree v0.21.0, gix v0.48.0, safety bump 20 crates ([`27e8c18`](https://github.com/Byron/gitoxide/commit/27e8c18db5a9a21843381c116a8ed6d9f681b3f8))
- - Prepare changelogs prior to release ([`00f96fb`](https://github.com/Byron/gitoxide/commit/00f96fb3110a8f81a1bd0d74c757c15b8773c6f6))
-</details>
-
-## 0.31.0 (2023-06-22)
-
-<csr-id-bcad5c22049d56a25ef69d6c7a3344e78f9a1d4d/>
-
-### Chore
-
- - <csr-id-bcad5c22049d56a25ef69d6c7a3344e78f9a1d4d/> Add `clippy::redundant-closure-for-method-calls` lint
-
-### Commit Statistics
-
-<csr-read-only-do-not-edit/>
-
- - 6 commits contributed to the release over the course of 10 calendar days.
- - 12 days passed between releases.
- - 1 commit was understood as [conventional](https://www.conventionalcommits.org).
- - 0 issues like '(#ID)' were seen in commit messages
-
-### Commit Details
-
-<csr-read-only-do-not-edit/>
-
-<details><summary>view details</summary>
-
- * **Uncategorized**
- - Release gix-date v0.6.0, gix-hash v0.11.3, gix-trace v0.1.1, gix-features v0.31.0, gix-actor v0.22.0, gix-path v0.8.2, gix-glob v0.9.0, gix-quote v0.4.5, gix-attributes v0.14.0, gix-chunk v0.4.3, gix-commitgraph v0.17.0, gix-config-value v0.12.2, gix-fs v0.3.0, gix-tempfile v7.0.0, gix-utils v0.1.3, gix-lock v7.0.0, gix-validate v0.7.6, gix-object v0.31.0, gix-ref v0.31.0, gix-sec v0.8.2, gix-config v0.24.0, gix-command v0.2.6, gix-prompt v0.5.2, gix-url v0.20.0, gix-credentials v0.16.0, gix-diff v0.31.0, gix-discover v0.20.0, gix-hashtable v0.2.2, gix-ignore v0.4.0, gix-bitmap v0.2.5, gix-revwalk v0.2.0, gix-traverse v0.28.0, gix-index v0.19.0, gix-mailmap v0.14.0, gix-negotiate v0.3.0, gix-pack v0.38.0, gix-odb v0.48.0, gix-packetline v0.16.3, gix-transport v0.33.0, gix-protocol v0.34.0, gix-revision v0.16.0, gix-refspec v0.12.0, gix-worktree v0.20.0, gix v0.47.0, gitoxide-core v0.29.0, gitoxide v0.27.0, safety bump 30 crates ([`ea9f942`](https://github.com/Byron/gitoxide/commit/ea9f9424e777f10da0e33bb9ffbbefd01c4c5a74))
- - Prepare changelogs prior to release ([`18b0a37`](https://github.com/Byron/gitoxide/commit/18b0a371941aa2d4d62512437d5daa351ba99ffd))
- - Merge branch 'corpus' ([`aa16c8c`](https://github.com/Byron/gitoxide/commit/aa16c8ce91452a3e3063cf1cf0240b6014c4743f))
- - Change MSRV to 1.65 ([`4f635fc`](https://github.com/Byron/gitoxide/commit/4f635fc4429350bae2582d25de86429969d28f30))
- - Merge branch 'help-874-redundant-closures' ([`fe59956`](https://github.com/Byron/gitoxide/commit/fe59956ad667303a923d7cfd9ffd72283df41d78))
- - Add `clippy::redundant-closure-for-method-calls` lint ([`bcad5c2`](https://github.com/Byron/gitoxide/commit/bcad5c22049d56a25ef69d6c7a3344e78f9a1d4d))
-</details>
-
-## 0.30.1 (2023-06-10)
-
-A maintenance release without user-facing changes.
-
-### Commit Statistics
-
-<csr-read-only-do-not-edit/>
-
- - 4 commits contributed to the release.
- - 3 days passed between releases.
- - 0 commits were understood as [conventional](https://www.conventionalcommits.org).
- - 0 issues like '(#ID)' were seen in commit messages
-
-### Commit Details
-
-<csr-read-only-do-not-edit/>
-
-<details><summary>view details</summary>
-
- * **Uncategorized**
- - Release gix-attributes v0.13.1, gix-diff v0.30.1, gix-revwalk v0.1.0, gix-traverse v0.27.0, gix-index v0.18.0, gix-revision v0.15.2, gix-negotiate v0.2.1, gix-pack v0.37.0, gix-odb v0.47.0, gix-protocol v0.33.2, gix-worktree v0.19.0, gix v0.46.0, safety bump 7 crates ([`2560a2c`](https://github.com/Byron/gitoxide/commit/2560a2cc3e1d8c60cd812e15696fa4761d036e19))
- - Prepare changelogs prior to release ([`298f3d7`](https://github.com/Byron/gitoxide/commit/298f3d7359c5b183314d8c584e45dcdd559d88b3))
- - Merge branch 'walk-with-commitgraph' ([`fdee9a2`](https://github.com/Byron/gitoxide/commit/fdee9a22873a13ae644d3dc92f8fe93f8f0266c0))
- - Adapt to changes in `gix-traverse` ([`1f682fd`](https://github.com/Byron/gitoxide/commit/1f682fd991b9b76a8d37e6852567ff239c0ac0db))
-</details>
-
-## 0.30.0 (2023-06-06)
-
-A maintenance release without user-facing changes.
-
-### Commit Statistics
-
-<csr-read-only-do-not-edit/>
-
- - 10 commits contributed to the release over the course of 25 calendar days.
- - 41 days passed between releases.
- - 0 commits were understood as [conventional](https://www.conventionalcommits.org).
- - 0 issues like '(#ID)' were seen in commit messages
-
-### Commit Details
-
-<csr-read-only-do-not-edit/>
-
-<details><summary>view details</summary>
-
- * **Uncategorized**
- - Release gix-date v0.5.1, gix-hash v0.11.2, gix-features v0.30.0, gix-actor v0.21.0, gix-path v0.8.1, gix-glob v0.8.0, gix-quote v0.4.4, gix-attributes v0.13.0, gix-chunk v0.4.2, gix-commitgraph v0.16.0, gix-config-value v0.12.1, gix-fs v0.2.0, gix-tempfile v6.0.0, gix-utils v0.1.2, gix-lock v6.0.0, gix-validate v0.7.5, gix-object v0.30.0, gix-ref v0.30.0, gix-sec v0.8.1, gix-config v0.23.0, gix-command v0.2.5, gix-prompt v0.5.1, gix-url v0.19.0, gix-credentials v0.15.0, gix-diff v0.30.0, gix-discover v0.19.0, gix-hashtable v0.2.1, gix-ignore v0.3.0, gix-bitmap v0.2.4, gix-traverse v0.26.0, gix-index v0.17.0, gix-mailmap v0.13.0, gix-revision v0.15.0, gix-negotiate v0.2.0, gix-pack v0.36.0, gix-odb v0.46.0, gix-packetline v0.16.2, gix-transport v0.32.0, gix-protocol v0.33.0, gix-refspec v0.11.0, gix-worktree v0.18.0, gix v0.45.0, safety bump 29 crates ([`9a9fa96`](https://github.com/Byron/gitoxide/commit/9a9fa96fa8a722bddc5c3b2270b0edf8f6615141))
- - Prepare changelogs prior to release ([`8f15cec`](https://github.com/Byron/gitoxide/commit/8f15cec1ec7d5a9d56bb158f155011ef2bb3539b))
- - Merge pull request #878 from blinxen/main ([`67da689`](https://github.com/Byron/gitoxide/commit/67da6894c8d8a24b982c732a1753a3e0a3300cc3))
- - Include missing changelog file in some crates ([`0269eed`](https://github.com/Byron/gitoxide/commit/0269eedc08c21589b5381d9b7d7fcc7004160bf8))
- - Merge branch 'fix-docs' ([`420553a`](https://github.com/Byron/gitoxide/commit/420553a10d780e0b2dc466cac120989298a5f187))
- - Cleaning up documentation ([`2578e57`](https://github.com/Byron/gitoxide/commit/2578e576bfa365d194a23a1fb0bf09be230873de))
- - Merge branch 'main' into auto-clippy ([`3ef5c90`](https://github.com/Byron/gitoxide/commit/3ef5c90aebce23385815f1df674c1d28d58b4b0d))
- - Merge branch 'blinxen/main' ([`9375cd7`](https://github.com/Byron/gitoxide/commit/9375cd75b01aa22a0e2eed6305fe45fabfd6c1ac))
- - Include license files in all crates ([`facaaf6`](https://github.com/Byron/gitoxide/commit/facaaf633f01c857dcf2572c6dbe0a92b7105c1c))
- - Release gix-object v0.29.2 ([`4f879bf`](https://github.com/Byron/gitoxide/commit/4f879bf35653bdc8f9729d524c6e8e1fb3c6886b))
-</details>
-
-## 0.29.0 (2023-04-26)
-
-### New Features (BREAKING)
-
- - <csr-id-b83ee366a3c65c717beb587ad809268f1c54b8ad/> Rename `serde1` cargo feature to `serde` and use the weak-deps cargo capability.
- With it it's possible to not automatically declare all optional dependencies externally visible
- features, and thus re-use feature names that oterwise are also a crate name.
-
- Previously I thought that `serde1` is for future-proofing and supporting multiple serde versions
- at the same time. However, it's most definitely a burden I wouldn't want anyway, so using
- `serde` seems to be the way to go into the future.
-
-### Commit Statistics
-
-<csr-read-only-do-not-edit/>
-
- - 9 commits contributed to the release over the course of 14 calendar days.
- - 31 days passed between releases.
- - 1 commit was understood as [conventional](https://www.conventionalcommits.org).
- - 1 unique issue was worked on: [#814](https://github.com/Byron/gitoxide/issues/814)
-
-### Thanks Clippy
-
-<csr-read-only-do-not-edit/>
-
-[Clippy](https://github.com/rust-lang/rust-clippy) helped 1 time to make code idiomatic.
-
-### Commit Details
-
-<csr-read-only-do-not-edit/>
-
-<details><summary>view details</summary>
-
- * **[#814](https://github.com/Byron/gitoxide/issues/814)**
- - Rename `serde1` cargo feature to `serde` and use the weak-deps cargo capability. ([`b83ee36`](https://github.com/Byron/gitoxide/commit/b83ee366a3c65c717beb587ad809268f1c54b8ad))
- * **Uncategorized**
- - Release gix-hash v0.11.1, gix-path v0.7.4, gix-glob v0.6.0, gix-attributes v0.11.0, gix-config-value v0.11.0, gix-fs v0.1.1, gix-tempfile v5.0.3, gix-utils v0.1.1, gix-lock v5.0.1, gix-object v0.29.1, gix-ref v0.28.0, gix-sec v0.7.0, gix-config v0.21.0, gix-prompt v0.4.0, gix-url v0.17.0, gix-credentials v0.13.0, gix-diff v0.29.0, gix-discover v0.17.0, gix-hashtable v0.2.0, gix-ignore v0.1.0, gix-bitmap v0.2.3, gix-traverse v0.25.0, gix-index v0.16.0, gix-mailmap v0.12.0, gix-pack v0.34.0, gix-odb v0.44.0, gix-packetline v0.16.0, gix-transport v0.30.0, gix-protocol v0.31.0, gix-revision v0.13.0, gix-refspec v0.10.0, gix-worktree v0.16.0, gix v0.44.0, safety bump 7 crates ([`91134a1`](https://github.com/Byron/gitoxide/commit/91134a11c8ba0e942f692488ec9bce9fa1086324))
- - Prepare changelogs prior to release ([`30a1a71`](https://github.com/Byron/gitoxide/commit/30a1a71f36f24faac0e0b362ffdfedea7f9cdbf1))
- - Merge branch 'fix-823' ([`6ebd61e`](https://github.com/Byron/gitoxide/commit/6ebd61e548a36a04e413ac725a03e607a3588334))
- - Thanks clippy ([`14e64e7`](https://github.com/Byron/gitoxide/commit/14e64e74649cfb1f2f99da87015939af98fae5c8))
- - Release gix-utils v0.1.0, gix-hash v0.11.0, gix-date v0.5.0, gix-features v0.29.0, gix-actor v0.20.0, gix-object v0.29.0, gix-archive v0.1.0, gix-fs v0.1.0, safety bump 25 crates ([`8dbd0a6`](https://github.com/Byron/gitoxide/commit/8dbd0a60557a85acfa231800a058cbac0271a8cf))
- - Merge branch 'main' into dev ([`cdef398`](https://github.com/Byron/gitoxide/commit/cdef398c4a3bd01baf0be2c27a3f77a400172b0d))
- - Rename the serde1 feature to serde ([`19338d9`](https://github.com/Byron/gitoxide/commit/19338d934b6712b7d6bd3fa3b2e4189bf7e6c8a1))
- - Release gix-hash v0.10.4, gix-hashtable v0.1.3 ([`b574a39`](https://github.com/Byron/gitoxide/commit/b574a3904203762a6b9e475e16a7c358d7616599))
-</details>
-
-## 0.28.1 (2023-03-26)
-
-A maintenance release without any user-facing changes.
-
-### Commit Statistics
-
-<csr-read-only-do-not-edit/>
-
- - 3 commits contributed to the release over the course of 9 calendar days.
- - 21 days passed between releases.
- - 0 commits were understood as [conventional](https://www.conventionalcommits.org).
- - 0 issues like '(#ID)' were seen in commit messages
-
-### Commit Details
-
-<csr-read-only-do-not-edit/>
-
-<details><summary>view details</summary>
-
- * **Uncategorized**
- - Release gix-tempfile v5.0.2, gix-validate v0.7.4, gix-config v0.20.0, gix-prompt v0.3.3, gix-diff v0.28.1, gix-discover v0.16.1, gix-pack v0.33.2, gix-transport v0.29.1, gix-protocol v0.30.1, gix-revision v0.12.1, gix-worktree v0.15.1, gix v0.43.0, safety bump gix v0.43.0 ([`5dc1f9f`](https://github.com/Byron/gitoxide/commit/5dc1f9f2bcb8b3e147115fcb6f76558e8f48ffef))
- - Prepare changelogs prior to release ([`3016a28`](https://github.com/Byron/gitoxide/commit/3016a285f566bdfe7de2774fa6f2254c1b1a2c51))
- - Fix CI on windows ([`79ed875`](https://github.com/Byron/gitoxide/commit/79ed8752451ce621cf1ee69d3ca15deae3416798))
-</details>
-
-## 0.28.0 (2023-03-04)
-
-A maintenance release without user-facing changes.
-
-### Commit Statistics
-
-<csr-read-only-do-not-edit/>
-
- - 2 commits contributed to the release.
- - 3 days passed between releases.
- - 0 commits were understood as [conventional](https://www.conventionalcommits.org).
- - 0 issues like '(#ID)' were seen in commit messages
-
-### Commit Details
-
-<csr-read-only-do-not-edit/>
-
-<details><summary>view details</summary>
-
- * **Uncategorized**
- - Release gix-features v0.28.0, gix-actor v0.19.0, gix-object v0.28.0, gix-diff v0.28.0, gix-traverse v0.24.0, gix-pack v0.32.0, safety bump 20 crates ([`0f411e9`](https://github.com/Byron/gitoxide/commit/0f411e93ec812592bb9d3a52b751399dd86f76f7))
- - Prepare changelogs prior to release of `gix-pack` ([`6db30ef`](https://github.com/Byron/gitoxide/commit/6db30ef6b5e931bbf12135507a3d922051de4d4b))
-</details>
-
-## 0.27.0 (2023-03-01)
-
-A maintenance release without user-facing changes.
-
-### Commit Statistics
-
-<csr-read-only-do-not-edit/>
-
- - 5 commits contributed to the release over the course of 3 calendar days.
- - 4 days passed between releases.
- - 0 commits were understood as [conventional](https://www.conventionalcommits.org).
- - 0 issues like '(#ID)' were seen in commit messages
-
-### Commit Details
-
-<csr-read-only-do-not-edit/>
-
-<details><summary>view details</summary>
-
- * **Uncategorized**
- - Release gix-tempfile v4.1.0, gix-lock v4.0.0, gix-ref v0.25.0, gix-config v0.17.0, gix-url v0.14.0, gix-credentials v0.10.0, gix-diff v0.27.0, gix-discover v0.14.0, gix-hashtable v0.1.2, gix-bitmap v0.2.2, gix-traverse v0.23.0, gix-index v0.13.0, gix-mailmap v0.10.0, gix-pack v0.31.0, gix-odb v0.41.0, gix-transport v0.26.0, gix-protocol v0.27.0, gix-revision v0.11.0, gix-refspec v0.8.0, gix-worktree v0.13.0, gix v0.38.0, safety bump 6 crates ([`ea9fd1d`](https://github.com/Byron/gitoxide/commit/ea9fd1d9b60e1e9e17042e9e37c06525823c40a5))
- - Release gix-features v0.27.0, gix-actor v0.18.0, gix-quote v0.4.3, gix-attributes v0.9.0, gix-object v0.27.0, gix-ref v0.25.0, gix-config v0.17.0, gix-url v0.14.0, gix-credentials v0.10.0, gix-diff v0.27.0, gix-discover v0.14.0, gix-hashtable v0.1.2, gix-bitmap v0.2.2, gix-traverse v0.23.0, gix-index v0.13.0, gix-mailmap v0.10.0, gix-pack v0.31.0, gix-odb v0.41.0, gix-transport v0.26.0, gix-protocol v0.27.0, gix-revision v0.11.0, gix-refspec v0.8.0, gix-worktree v0.13.0, gix v0.38.0 ([`e6cc618`](https://github.com/Byron/gitoxide/commit/e6cc6184a7a49dbc2503c1c1bdd3688ca5cec5fe))
- - Adjust manifests prior to release ([`addd789`](https://github.com/Byron/gitoxide/commit/addd78958fdd1e54eb702854e96079539d01965a))
- - Prepare changelogs prior to release ([`94c99c7`](https://github.com/Byron/gitoxide/commit/94c99c71520f33269cc8dbc26f82a74747cc7e16))
- - Make fmt ([`8ef1cb2`](https://github.com/Byron/gitoxide/commit/8ef1cb293434c7b9e1fda4a6963368e0435920a9))
-</details>
-
-## 0.26.3 (2023-02-24)
-
-### Bug Fixes
-
- - <csr-id-1d3d22d45e70222c12fcf5a82063ceb9321a0129/> reproduce a diff issue and fix it
- Diffs could be quite wrong and this is a small repro along with the fix.
-
-### Commit Statistics
-
-<csr-read-only-do-not-edit/>
-
- - 4 commits contributed to the release.
- - 3 days passed between releases.
- - 1 commit was understood as [conventional](https://www.conventionalcommits.org).
- - 0 issues like '(#ID)' were seen in commit messages
-
-### Commit Details
-
-<csr-read-only-do-not-edit/>
-
-<details><summary>view details</summary>
-
- * **Uncategorized**
- - Release gix-object v0.26.4, gix-diff v0.26.3, gix v0.37.2, gix-commitgraph v0.13.1, gitoxide-core v0.25.0, gitoxide v0.23.0 ([`9982949`](https://github.com/Byron/gitoxide/commit/9982949cab401501d5ce3cba4e2ba900bc249c53))
- - Prepare changelog for release ([`13a1ec1`](https://github.com/Byron/gitoxide/commit/13a1ec1803d677c2e94f3ea0461118c2426f8071))
- - Merge branch 'rename-tracking' ([`550144a`](https://github.com/Byron/gitoxide/commit/550144a5fd37d501d86f4b1c4db2948d951d1c93))
- - Reproduce a diff issue and fix it ([`1d3d22d`](https://github.com/Byron/gitoxide/commit/1d3d22d45e70222c12fcf5a82063ceb9321a0129))
-</details>
-
-## 0.26.2 (2023-02-20)
-
-### New Features
-
- - <csr-id-f0e40ecddaf1211f76ed60ef30cf03dcfd53a7ab/> add `wasm` feature toggle to allow compilation to wasm32-unknown-unknown
- - <csr-id-2ad0e8b984a874e0a591b01e9d46f2f24a541a97/> `tree::Recorder::track_location()` to track no location or filenames only.
- Previously the recorder would track full paths, but now it's possible to configure it
- to track no paths or file names only.
-
- That way it's possible to use the implementation in custom delegate implementations or
- otherwise tune the computational cost according to actual needs.
- - <csr-id-507196e63875100e705573f3b4aab110b7876852/> add `tree::visit::Change::(oid_and_mode|mode)()` methods.
- These methods allow to easily access the current object id and mode
- of a change, as well as the mode separately.
-
-### Bug Fixes
-
- - <csr-id-e14dc7d475373d2c266e84ff8f1826c68a34ab92/> note that crates have been renamed from `git-*` to `gix-*`.
- This also means that the `git-*` prefixed crates of the `gitoxide` project
- are effectively unmaintained.
- Use the crates with the `gix-*` prefix instead.
-
- If you were using `git-repository`, then `gix` is its substitute.
-
-### Commit Statistics
-
-<csr-read-only-do-not-edit/>
-
- - 4 commits contributed to the release.
- - 3 days passed between releases.
- - 2 commits were understood as [conventional](https://www.conventionalcommits.org).
- - 0 issues like '(#ID)' were seen in commit messages
-
-### Commit Details
-
-<csr-read-only-do-not-edit/>
-
-<details><summary>view details</summary>
-
- * **Uncategorized**
- - Release gix-object v0.26.3, gix-diff v0.26.2, gix-traverse v0.22.2, gix v0.37.0, safety bump 3 crates ([`8b3e42f`](https://github.com/Byron/gitoxide/commit/8b3e42f69fe97fe5083eb845c323f10d7ac087b2))
- - Merge branch 'rename-tracking' ([`35415c5`](https://github.com/Byron/gitoxide/commit/35415c5061bf5ea90a04db80d06ac3622d0b0f1a))
- - `tree::Recorder::track_location()` to track no location or filenames only. ([`2ad0e8b`](https://github.com/Byron/gitoxide/commit/2ad0e8b984a874e0a591b01e9d46f2f24a541a97))
- - Add `tree::visit::Change::(oid_and_mode|mode)()` methods. ([`507196e`](https://github.com/Byron/gitoxide/commit/507196e63875100e705573f3b4aab110b7876852))
-</details>
-
-## 0.26.1 (2023-02-17)
-
-<csr-id-ebc7f47708a63c3df4415ba0e702660d976dfb3e/>
-<csr-id-2290d006705ff47ad780b009fe58ee422b3285af/>
-<csr-id-fed47d45b7e39958921a230b485b5b0384c8672f/>
-<csr-id-f7f136dbe4f86e7dee1d54835c420ec07c96cd78/>
-<csr-id-533e887e80c5f7ede8392884562e1c5ba56fb9a8/>
-
-### Refactor (BREAKING)
-
- - <csr-id-ebc7f47708a63c3df4415ba0e702660d976dfb3e/> remove pack-cache from `Find::try_find(…)`
- With the new architecture this can be an implementation detail without
- forcing it to be Sync.
- - <csr-id-2290d006705ff47ad780b009fe58ee422b3285af/> move git_pack::data::Object to git_object::Data, massively alter git_odb::Find trait
- This will break a lot, but has to happen to prepare these traits for the
- next generation of object databases.
-
-### Other (BREAKING)
-
- - <csr-id-fed47d45b7e39958921a230b485b5b0384c8672f/> rename `lines` module to `text`.
- Thanks to `imara-diff`, diffs can easily abstract over different kinds
- of tokens, at the expense of a much more complex call signature.
-
-### Bug Fixes (BREAKING)
-
- - <csr-id-6d9533dd987241fe0ddf0e401512ca6bdf0d3ff0/> Don't degenerate errors when accessing objects
-
-### New Features (BREAKING)
-
- - <csr-id-3d8fa8fef9800b1576beab8a5bc39b821157a5ed/> upgrade edition to 2021 in most crates.
- MSRV for this is 1.56, and we are now at 1.60 so should be compatible.
- This isn't more than a patch release as it should break nobody
- who is adhering to the MSRV, but let's be careful and mark it
- breaking.
-
- Note that `git-features` and `git-pack` are still on edition 2018
- as they make use of a workaround to support (safe) mutable access
- to non-overlapping entries in a slice which doesn't work anymore
- in edition 2021.
-
-### Changed (BREAKING)
-
- - <csr-id-16b553367518153b8f5b0bb6b23d2fcefcaac801/> re-export the `imara-diff` crate as `git_diff::blob::*`.
- It's flexible API needs nothing more and can be wrapped into more
- convenient APIs from higher-level crates.
-
- Note that despite being limited to `blob`, technically `imara-diff`
- can handle diffing any kind of sequence.
- - <csr-id-68a336502351ce16b804e7c099479bc974c3787c/> remove `text::with(…)` as it's not usable in practice.
- The only viable API for now, and not a bad one at that, is the one
- `imara-diff` provides.
- - <csr-id-ee26ddfe645ca39024795f85bb8e1cab6b6f5863/> replace `similar` with `imara-diff`.
- The latter clearly has a more complex call signature, but that also
- makes it far more powerful which will pay off with better performance.
- - <csr-id-8c5ae77f06a64c57df9a9ad1190266896a223dbe/> Remove deprecated compound and linked object databases
- The dynamic/general store is the only maintained can-do-it-all
- DB now.
-
-### New Features
-
- - <csr-id-f0e40ecddaf1211f76ed60ef30cf03dcfd53a7ab/> add `wasm` feature toggle to allow compilation to wasm32-unknown-unknown
- - <csr-id-e164856ab8d80c13b082a283b4c73b6fb31968f6/> forward line-diffing capabilities curtesy of the `similar` crate.
- This is a first and maybe the last step towards providing diffing
- functionality, and it seems like the right choice to keep this in
- similar and contribute there as needed. All algorithms are well
- described and thus shouldn't be git-specific per-se, and `similar`
- is the best the community has to offer.
-
-### Chore
-
- - <csr-id-f7f136dbe4f86e7dee1d54835c420ec07c96cd78/> uniformize deny attributes
- - <csr-id-533e887e80c5f7ede8392884562e1c5ba56fb9a8/> remove default link to cargo doc everywhere
-
-### Documentation
-
- - <csr-id-39ed9eda62b7718d5109135e5ad406fb1fe2978c/> fix typos
-
-### Commit Statistics
-
-<csr-read-only-do-not-edit/>
-
- - 338 commits contributed to the release over the course of 662 calendar days.
- - 14 commits were understood as [conventional](https://www.conventionalcommits.org).
- - 13 unique issues were worked on: [#198](https://github.com/Byron/gitoxide/issues/198), [#222](https://github.com/Byron/gitoxide/issues/222), [#254](https://github.com/Byron/gitoxide/issues/254), [#266](https://github.com/Byron/gitoxide/issues/266), [#279](https://github.com/Byron/gitoxide/issues/279), [#298](https://github.com/Byron/gitoxide/issues/298), [#301](https://github.com/Byron/gitoxide/issues/301), [#364](https://github.com/Byron/gitoxide/issues/364), [#384](https://github.com/Byron/gitoxide/issues/384), [#450](https://github.com/Byron/gitoxide/issues/450), [#470](https://github.com/Byron/gitoxide/issues/470), [#691](https://github.com/Byron/gitoxide/issues/691), [#XXX](https://github.com/Byron/gitoxide/issues/XXX)
-
-### Thanks Clippy
-
-<csr-read-only-do-not-edit/>
-
-[Clippy](https://github.com/rust-lang/rust-clippy) helped 3 times to make code idiomatic.
-
-### Commit Details
-
-<csr-read-only-do-not-edit/>
-
-<details><summary>view details</summary>
-
- * **[#198](https://github.com/Byron/gitoxide/issues/198)**
- - Adjust all changelogs to fulfil requirements for publishing ([`04b9ca0`](https://github.com/Byron/gitoxide/commit/04b9ca025a1667529b2221ab4280bd3c8dae01cf))
- - Deduplicate conventional message ids ([`e695eda`](https://github.com/Byron/gitoxide/commit/e695eda8cd183f703d9a3e59b7c3c7fa496ea1d2))
- - Regenerate all changelogs to get links ([`0c81769`](https://github.com/Byron/gitoxide/commit/0c817690bd444f52bed2936b2b451cafd87dde92))
- - Mention actual issues that where worked on ([`a517e39`](https://github.com/Byron/gitoxide/commit/a517e39a81145b331f6c7a6cc2fc22e25daf42e2))
- - Allow 'refactor' and 'other' in conventional messages if they have breaking changes ([`4eebaac`](https://github.com/Byron/gitoxide/commit/4eebaac669e590beed112b622752997c64772ef1))
- - Rebuild all changelogs to assure properly ordered headlines ([`4a9a05f`](https://github.com/Byron/gitoxide/commit/4a9a05f95930bad5938d4ce9c517ebf0e0b990f1))
- - Sort all commits by time, descending… ([`f536bad`](https://github.com/Byron/gitoxide/commit/f536bad20ffbac4dc353dfeb1a917bb88becbb78))
- - Greatly reduce changelog size now that the traversal fix is applied ([`a0bc98c`](https://github.com/Byron/gitoxide/commit/a0bc98c06c349de2fd6e0d4593606e68b98def72))
- - Generate changelogs with details ([`e1861ca`](https://github.com/Byron/gitoxide/commit/e1861caa435d312953a9fea7ceff6d2e07b03443))
- - Update all changelogs with details ([`58ab2ae`](https://github.com/Byron/gitoxide/commit/58ab2aee23ba70a536e9487b44fb04c610374d1a))
- - Update changelogs ([`c857d61`](https://github.com/Byron/gitoxide/commit/c857d61ce3ce342012a2c4ba10a8327822aa530e))
- - Avoid adding newlines which make writing unstable ([`6b5c394`](https://github.com/Byron/gitoxide/commit/6b5c394f49282a8d09c2a9ffece840e4683572db))
- - Fix section headline level ([`9d6f263`](https://github.com/Byron/gitoxide/commit/9d6f263beef289d227dec1acc2d4240087cb9be6))
- - Write first version of changlogs thus far… ([`719b6bd`](https://github.com/Byron/gitoxide/commit/719b6bdf543b8269ccafad9ad6b46e0c55efaa38))
- * **[#222](https://github.com/Byron/gitoxide/issues/222)**
- - Update changelogs prior to release ([`9a493d0`](https://github.com/Byron/gitoxide/commit/9a493d0651b0b6d71cf230dc510a658be7f8cb19))
- - Stabilize changelogs ([`920e832`](https://github.com/Byron/gitoxide/commit/920e83219911df1c440d3fe42fd5ec3a295b0bb8))
- - Update changelogs prior to release ([`b3e2252`](https://github.com/Byron/gitoxide/commit/b3e2252f7461a003d9a4612da60ba931dd8c0bef))
- * **[#254](https://github.com/Byron/gitoxide/issues/254)**
- - Adjust changelogs prior to git-pack release ([`6776a3f`](https://github.com/Byron/gitoxide/commit/6776a3ff9fa5a283da06c9ec5723d13023a0b267))
- * **[#266](https://github.com/Byron/gitoxide/issues/266)**
- - Adapt to changes in git-odb ([`a44dd4b`](https://github.com/Byron/gitoxide/commit/a44dd4b5d1910856d7a21e156e7bca3138c04484))
- - Remove pack-cache from `Find::try_find(…)` ([`ebc7f47`](https://github.com/Byron/gitoxide/commit/ebc7f47708a63c3df4415ba0e702660d976dfb3e))
- - Move git_pack::data::Object to git_object::Data, massively alter git_odb::Find trait ([`2290d00`](https://github.com/Byron/gitoxide/commit/2290d006705ff47ad780b009fe58ee422b3285af))
- * **[#279](https://github.com/Byron/gitoxide/issues/279)**
- - Adapt to changes to `git-odb` ([`5b0e2b9`](https://github.com/Byron/gitoxide/commit/5b0e2b927eac75548d5a9f3cf302aa5eda70a795))
- * **[#298](https://github.com/Byron/gitoxide/issues/298)**
- - Restrict signature changes to 'Ancestores::sorting()` ([`d71bd9d`](https://github.com/Byron/gitoxide/commit/d71bd9ded1e5e5a61a27be3d55f4b85ee4049bcf))
- - Adjust to changes in git-traverse ([`8240622`](https://github.com/Byron/gitoxide/commit/824062215865e6ec12afeb2d51b3c63f15291244))
- * **[#301](https://github.com/Byron/gitoxide/issues/301)**
- - Update changelogs prior to release ([`84cb256`](https://github.com/Byron/gitoxide/commit/84cb25614a5fcddff297c1713eba4efbb6ff1596))
- - Adjust for different errors on windows when handling errors opening files… ([`9625829`](https://github.com/Byron/gitoxide/commit/962582996bb8d53739393acfcd150e9aa5132bae))
- * **[#364](https://github.com/Byron/gitoxide/issues/364)**
- - Update changelogs prior to release ([`746a676`](https://github.com/Byron/gitoxide/commit/746a676056cd4907da7137a00798344b5bdb4419))
- - Adjust to breaking changes in `git-traverse` ([`d79b506`](https://github.com/Byron/gitoxide/commit/d79b5064eab2d1bef445e6c9e62a53466a8d5225))
- * **[#384](https://github.com/Byron/gitoxide/issues/384)**
- - No need to isolate archives by crate name ([`19d46f3`](https://github.com/Byron/gitoxide/commit/19d46f35440419b9911b6e2bca2cfc975865dce9))
- - Add archive files via git-lfs ([`7202a1c`](https://github.com/Byron/gitoxide/commit/7202a1c4734ad904c026ee3e4e2143c0461d51a2))
- - Auto-set commit.gpgsign=false when executing git ([`c23feb6`](https://github.com/Byron/gitoxide/commit/c23feb64ad157180cfba8a11c882b829733ea8f6))
- * **[#450](https://github.com/Byron/gitoxide/issues/450)**
- - Fix docs ([`60c136c`](https://github.com/Byron/gitoxide/commit/60c136ca38c6ad0cd7e0ea5e3e0e83bb828a9c94))
- * **[#470](https://github.com/Byron/gitoxide/issues/470)**
- - Update changelogs prior to release ([`caa7a1b`](https://github.com/Byron/gitoxide/commit/caa7a1bdef74d7d3166a7e38127a59f5ab3cfbdd))
- - Forward line-diffing capabilities curtesy of the `similar` crate. ([`e164856`](https://github.com/Byron/gitoxide/commit/e164856ab8d80c13b082a283b4c73b6fb31968f6))
- - Improved usability of the `Action` enum ([`d04807b`](https://github.com/Byron/gitoxide/commit/d04807bc9a70ddb6139446356df5c1bdb902a497))
- * **[#691](https://github.com/Byron/gitoxide/issues/691)**
- - Set `rust-version` to 1.64 ([`55066ce`](https://github.com/Byron/gitoxide/commit/55066ce5fd71209abb5d84da2998b903504584bb))
- * **[#XXX](https://github.com/Byron/gitoxide/issues/XXX)**
- - Prepare changelogs prior to release ([`8c0bca3`](https://github.com/Byron/gitoxide/commit/8c0bca37ff9fbaadbe55561fb2b0d649980c95b1))
- * **Uncategorized**
- - Release gix-credentials v0.9.1, gix-diff v0.26.1, gix-discover v0.13.0, gix-hashtable v0.1.1, gix-bitmap v0.2.1, gix-traverse v0.22.1, gix-index v0.12.3, gix-mailmap v0.9.2, gix-chunk v0.4.1, gix-pack v0.30.2, gix-odb v0.40.2, gix-packetline v0.14.2, gix-transport v0.25.4, gix-protocol v0.26.3, gix-revision v0.10.3, gix-refspec v0.7.2, gix-worktree v0.12.2, gix v0.36.0 ([`a5869e0`](https://github.com/Byron/gitoxide/commit/a5869e0b223406820bca836e3e3a7fae2bfd9b04))
- - Release gix-config v0.16.1, gix-command v0.2.3, gix-prompt v0.3.2, gix-url v0.13.2, gix-credentials v0.9.1, gix-diff v0.26.1, gix-discover v0.13.0, gix-hashtable v0.1.1, gix-bitmap v0.2.1, gix-traverse v0.22.1, gix-index v0.12.3, gix-mailmap v0.9.2, gix-chunk v0.4.1, gix-pack v0.30.2, gix-odb v0.40.2, gix-packetline v0.14.2, gix-transport v0.25.4, gix-protocol v0.26.3, gix-revision v0.10.3, gix-refspec v0.7.2, gix-worktree v0.12.2, gix v0.36.0 ([`41d57b9`](https://github.com/Byron/gitoxide/commit/41d57b98964094fc1528adb09f69ca824229bf25))
- - Release gix-attributes v0.8.2, gix-config-value v0.10.1, gix-tempfile v3.0.2, gix-lock v3.0.2, gix-validate v0.7.2, gix-object v0.26.1, gix-ref v0.24.0, gix-sec v0.6.2, gix-config v0.16.1, gix-command v0.2.3, gix-prompt v0.3.2, gix-url v0.13.2, gix-credentials v0.9.1, gix-diff v0.26.1, gix-discover v0.13.0, gix-hashtable v0.1.1, gix-bitmap v0.2.1, gix-traverse v0.22.1, gix-index v0.12.3, gix-mailmap v0.9.2, gix-chunk v0.4.1, gix-pack v0.30.2, gix-odb v0.40.2, gix-packetline v0.14.2, gix-transport v0.25.4, gix-protocol v0.26.3, gix-revision v0.10.3, gix-refspec v0.7.2, gix-worktree v0.12.2, gix v0.36.0 ([`e313112`](https://github.com/Byron/gitoxide/commit/e31311257bd138b52042dea5fc40c3abab7f269b))
- - Release gix-features v0.26.4, gix-actor v0.17.1, gix-glob v0.5.3, gix-path v0.7.1, gix-quote v0.4.1, gix-attributes v0.8.2, gix-config-value v0.10.1, gix-tempfile v3.0.2, gix-lock v3.0.2, gix-validate v0.7.2, gix-object v0.26.1, gix-ref v0.24.0, gix-sec v0.6.2, gix-config v0.16.1, gix-command v0.2.3, gix-prompt v0.3.2, gix-url v0.13.2, gix-credentials v0.9.1, gix-diff v0.26.1, gix-discover v0.13.0, gix-hashtable v0.1.1, gix-bitmap v0.2.1, gix-traverse v0.22.1, gix-index v0.12.3, gix-mailmap v0.9.2, gix-chunk v0.4.1, gix-pack v0.30.2, gix-odb v0.40.2, gix-packetline v0.14.2, gix-transport v0.25.4, gix-protocol v0.26.3, gix-revision v0.10.3, gix-refspec v0.7.2, gix-worktree v0.12.2, gix v0.36.0 ([`6efd0d3`](https://github.com/Byron/gitoxide/commit/6efd0d31fbeca31ab7319aa2ac97bb31dc4ce055))
- - Release gix-date v0.4.2, gix-hash v0.10.2, gix-features v0.26.4, gix-actor v0.17.1, gix-glob v0.5.3, gix-path v0.7.1, gix-quote v0.4.1, gix-attributes v0.8.2, gix-config-value v0.10.1, gix-tempfile v3.0.2, gix-lock v3.0.2, gix-validate v0.7.2, gix-object v0.26.1, gix-ref v0.24.0, gix-sec v0.6.2, gix-config v0.16.1, gix-command v0.2.3, gix-prompt v0.3.2, gix-url v0.13.2, gix-credentials v0.9.1, gix-diff v0.26.1, gix-discover v0.13.0, gix-hashtable v0.1.1, gix-bitmap v0.2.1, gix-traverse v0.22.1, gix-index v0.12.3, gix-mailmap v0.9.2, gix-chunk v0.4.1, gix-pack v0.30.2, gix-odb v0.40.2, gix-packetline v0.14.2, gix-transport v0.25.4, gix-protocol v0.26.3, gix-revision v0.10.3, gix-refspec v0.7.2, gix-worktree v0.12.2, gix v0.36.0 ([`6ccc88a`](https://github.com/Byron/gitoxide/commit/6ccc88a8e4a56973b1a358cf72dc012ee3c75d56))
- - Apparently some fixtures were changed, so here are the archived ([`e49aed9`](https://github.com/Byron/gitoxide/commit/e49aed9d1d264030c73e431e7cd291d27546927b))
- - Merge branch 'rename-crates' into inform-about-gix-rename ([`c9275b9`](https://github.com/Byron/gitoxide/commit/c9275b99ea43949306d93775d9d78c98fb86cfb1))
- - Rename `git-testtools` to `gix-testtools` ([`b65c33d`](https://github.com/Byron/gitoxide/commit/b65c33d256cfed65d11adeff41132e3e58754089))
- - Adjust to renaming of `git-pack` to `gix-pack` ([`1ee81ad`](https://github.com/Byron/gitoxide/commit/1ee81ad310285ee4aa118118a2be3810dbace574))
- - Adjust to renaming of `git-odb` to `gix-odb` ([`476e2ad`](https://github.com/Byron/gitoxide/commit/476e2ad1a64e9e3f0d7c8651d5bcbee36cd78241))
- - Adjust to renaming of `git-index` to `gix-index` ([`86db5e0`](https://github.com/Byron/gitoxide/commit/86db5e09fc58ce66b252dc13b8d7e2c48e4d5062))
- - Adjust to renaming of `git-diff` to `gix-diff` ([`49a163e`](https://github.com/Byron/gitoxide/commit/49a163ec8b18f0e5fcd05a315de16d5d8be7650e))
- - Rename `git-diff` to `gix-diff` ([`95cce04`](https://github.com/Byron/gitoxide/commit/95cce049a31e2f3cf57fa24ca7d17074eed294ec))
- - Adjust to renaming of `git-commitgraph` to `gix-commitgraph` ([`f1dd0a3`](https://github.com/Byron/gitoxide/commit/f1dd0a3366e31259af029da73228e8af2f414244))
- - Adjust to renaming of `git-mailmap` to `gix-mailmap` ([`2e28c56`](https://github.com/Byron/gitoxide/commit/2e28c56bb9f70de6f97439818118d3a25859698f))
- - Adjust to renaming of `git-discover` to `gix-discover` ([`53adfe1`](https://github.com/Byron/gitoxide/commit/53adfe1c34e9ea3b27067a97b5e7ac80b351c441))
- - Adjust to renaming of `git-lfs` to `gix-lfs` ([`b9225c8`](https://github.com/Byron/gitoxide/commit/b9225c830daf1388484ee7e05f727990fdeff43c))
- - Adjust to renaming of `git-chunk` to `gix-chunk` ([`59194e3`](https://github.com/Byron/gitoxide/commit/59194e3a07853eae0624ebc4907478d1de4f7599))
- - Adjust to renaming of `git-bitmap` to `gix-bitmap` ([`75f2a07`](https://github.com/Byron/gitoxide/commit/75f2a079b17489f62bc43e1f1d932307375c4f9d))
- - Adjust to renaming for `git-protocol` to `gix-protocol` ([`823795a`](https://github.com/Byron/gitoxide/commit/823795addea3810243cab7936cd8ec0137cbc224))
- - Adjust to renaming of `git-refspec` to `gix-refspec` ([`c958802`](https://github.com/Byron/gitoxide/commit/c9588020561577736faa065e7e5b5bb486ca8fe1))
- - Adjust to renaming of `git-revision` to `gix-revision` ([`ee0ee84`](https://github.com/Byron/gitoxide/commit/ee0ee84607c2ffe11ee75f27a31903db68afed02))
- - Adjust to renaming of `git-transport` to `gix-transport` ([`b2ccf71`](https://github.com/Byron/gitoxide/commit/b2ccf716dc4425bb96651d4d58806a3cc2da219e))
- - Adjust to renaming of `git-credentials` to `gix-credentials` ([`6b18abc`](https://github.com/Byron/gitoxide/commit/6b18abcf2856f02ab938d535a65e51ac282bf94a))
- - Adjust to renaming of `git-prompt` to `gix-prompt` ([`6a4654e`](https://github.com/Byron/gitoxide/commit/6a4654e0d10ab773dd219cb4b731c0fc1471c36d))
- - Adjust to renaming of `git-command` to `gix-command` ([`d26b8e0`](https://github.com/Byron/gitoxide/commit/d26b8e046496894ae06b0bbfdba77196976cd975))
- - Adjust to renaming of `git-packetline` to `gix-packetline` ([`5cbd22c`](https://github.com/Byron/gitoxide/commit/5cbd22cf42efb760058561c6c3bbcd4dab8c8be1))
- - Adjust to renaming of `git-worktree` to `gix-worktree` ([`73a1282`](https://github.com/Byron/gitoxide/commit/73a12821b3d9b66ec1714d07dd27eb7a73e3a544))
- - Adjust to renamining of `git-hashtable` to `gix-hashtable` ([`26a0c98`](https://github.com/Byron/gitoxide/commit/26a0c98d0a389b03e3dc7bfc758b37155e285244))
- - Adjust to renamining of `git-worktree` to `gix-worktree` ([`108bb1a`](https://github.com/Byron/gitoxide/commit/108bb1a634f4828853fb590e9fc125f79441dd38))
- - Adjust to renaming of `git-url` to `gix-url` ([`b50817a`](https://github.com/Byron/gitoxide/commit/b50817aadb143e19f61f64e19b19ec1107d980c6))
- - Adjust to renaming of `git-date` to `gix-date` ([`9a79ff2`](https://github.com/Byron/gitoxide/commit/9a79ff2d5cc74c1efad9f41e21095ae498cce00b))
- - Adjust to renamining of `git-attributes` to `gix-attributes` ([`4a8b3b8`](https://github.com/Byron/gitoxide/commit/4a8b3b812ac26f2a2aee8ce8ca81591273383c84))
- - Adjust to renaminig of `git-quote` to `gix-quote` ([`648025b`](https://github.com/Byron/gitoxide/commit/648025b7ca94411fdd0d90c53e5faede5fde6c8d))
- - Adjust to renaming of `git-config` to `gix-config` ([`3a861c8`](https://github.com/Byron/gitoxide/commit/3a861c8f049f6502d3bcbdac752659aa1aeda46a))
- - Adjust to renaming of `git-ref` to `gix-ref` ([`1f5f695`](https://github.com/Byron/gitoxide/commit/1f5f695407b034377d94b172465ff573562b3fc3))
- - Adjust to renaming of `git-lock` to `gix-lock` ([`2028e78`](https://github.com/Byron/gitoxide/commit/2028e7884ae1821edeec81612f501e88e4722b17))
- - Adjust to renaming of `git-tempfile` to `gix-tempfile` ([`b6cc3eb`](https://github.com/Byron/gitoxide/commit/b6cc3ebb5137084a6327af16a7d9364d8f092cc9))
- - Adjust to renaming of `git-object` to `gix-object` ([`fc86a1e`](https://github.com/Byron/gitoxide/commit/fc86a1e710ad7bf076c25cc6f028ddcf1a5a4311))
- - Adjust to renaming of `git-actor` to `gix-actor` ([`4dc9b44`](https://github.com/Byron/gitoxide/commit/4dc9b44dc52f2486ffa2040585c6897c1bf55df4))
- - Adjust to renaming of `git-validate` to `gix-validate` ([`5e40ad0`](https://github.com/Byron/gitoxide/commit/5e40ad078af3d08cbc2ca81ce755c0ed8a065b4f))
- - Adjust to renaming of `git-hash` to `gix-hash` ([`4a9d025`](https://github.com/Byron/gitoxide/commit/4a9d0257110c3efa61d08c8457c4545b200226d1))
- - Adjust to renaming of `git-features` to `gix-features` ([`e2dd68a`](https://github.com/Byron/gitoxide/commit/e2dd68a417aad229e194ff20dbbfd77668096ec6))
- - Adjust to renaming of `git-glob` to `gix-glob` ([`35b2a3a`](https://github.com/Byron/gitoxide/commit/35b2a3acbc8f2a03f151bc0a3863163844e0ca86))
- - Adjust to renaming of `git-sec` to `gix-sec` ([`eabbb92`](https://github.com/Byron/gitoxide/commit/eabbb923bd5a32fc80fa80f96cfdc2ab7bb2ed17))
- - Adapt to renaming of `git-path` to `gix-path` ([`d3bbcfc`](https://github.com/Byron/gitoxide/commit/d3bbcfccad80fc44ea8e7bf819f23adaca06ba2d))
- - Adjust to rename of `git-config-value` to `gix-config-value` ([`622b3e1`](https://github.com/Byron/gitoxide/commit/622b3e1d0bffa0f8db73697960f9712024fac430))
- - Merge branch 'git-pack-wasm' ([`4bc19d1`](https://github.com/Byron/gitoxide/commit/4bc19d104233a3e3d3d2768c0e9b9ad027cc34c0))
- - Add `wasm` feature toggle to allow compilation to wasm32-unknown-unknown ([`f0e40ec`](https://github.com/Byron/gitoxide/commit/f0e40ecddaf1211f76ed60ef30cf03dcfd53a7ab))
- - Release git-date v0.4.2, git-hash v0.10.2, git-features v0.26.2, git-actor v0.17.1, git-glob v0.5.3, git-path v0.7.1, git-quote v0.4.1, git-attributes v0.8.2, git-config-value v0.10.1, git-tempfile v3.0.2, git-lock v3.0.2, git-validate v0.7.2, git-object v0.26.1, git-ref v0.24.0, git-sec v0.6.2, git-config v0.16.0, git-command v0.2.3, git-prompt v0.3.2, git-url v0.13.2, git-credentials v0.9.1, git-diff v0.26.1, git-discover v0.13.0, git-hashtable v0.1.1, git-bitmap v0.2.1, git-traverse v0.22.1, git-index v0.12.3, git-mailmap v0.9.2, git-chunk v0.4.1, git-pack v0.30.2, git-odb v0.40.2, git-packetline v0.14.2, git-transport v0.25.4, git-protocol v0.26.3, git-revision v0.10.2, git-refspec v0.7.2, git-worktree v0.12.2, git-repository v0.34.0, safety bump 3 crates ([`c196d20`](https://github.com/Byron/gitoxide/commit/c196d206d57a310b1ce974a1cf0e7e6d6db5c4d6))
- - Prepare changelogs prior to release ([`7c846d2`](https://github.com/Byron/gitoxide/commit/7c846d2102dc767366771925212712ef8cc9bf07))
- - Merge branch 'Lioness100/main' ([`1e544e8`](https://github.com/Byron/gitoxide/commit/1e544e82455bf9ecb5e3c2146280eaf7ecd81f16))
- - Fix typos ([`39ed9ed`](https://github.com/Byron/gitoxide/commit/39ed9eda62b7718d5109135e5ad406fb1fe2978c))
- - Thanks clippy ([`bac57dd`](https://github.com/Byron/gitoxide/commit/bac57dd05ea2d5a4ee45ef9350fa3f2e19474bc0))
- - Unify test crate names to use the plural ([`234ec14`](https://github.com/Byron/gitoxide/commit/234ec1458f20794502b02732513875547768280f))
- - Break cyclical dev dependencies ([`1fea18f`](https://github.com/Byron/gitoxide/commit/1fea18f5f8b4189a23dc4fa3f041a672f6fbcfb3))
- - Release git-ref v0.23.0, git-config v0.15.0, git-command v0.2.2, git-diff v0.26.0, git-discover v0.12.0, git-mailmap v0.9.0, git-pack v0.30.0, git-odb v0.40.0, git-transport v0.25.2, git-protocol v0.26.1, git-revision v0.10.0, git-refspec v0.7.0, git-worktree v0.12.0, git-repository v0.32.0 ([`ffb5b6a`](https://github.com/Byron/gitoxide/commit/ffb5b6a21cb415315db6fd5294940c7c6deb4538))
- - Prepare changelogs prior to release ([`4381a03`](https://github.com/Byron/gitoxide/commit/4381a03a34c305f31713cce234c2afbf8ac60f01))
- - Release git-date v0.4.0, git-actor v0.17.0, git-object v0.26.0, git-traverse v0.22.0, git-index v0.12.0, safety bump 15 crates ([`0e3d0a5`](https://github.com/Byron/gitoxide/commit/0e3d0a56d7e6a60c6578138f2690b4fa54a2072d))
- - Release git-features v0.26.0, git-actor v0.16.0, git-attributes v0.8.0, git-object v0.25.0, git-ref v0.22.0, git-config v0.14.0, git-command v0.2.1, git-url v0.13.0, git-credentials v0.9.0, git-diff v0.25.0, git-discover v0.11.0, git-traverse v0.21.0, git-index v0.11.0, git-mailmap v0.8.0, git-pack v0.29.0, git-odb v0.39.0, git-transport v0.25.0, git-protocol v0.26.0, git-revision v0.9.0, git-refspec v0.6.0, git-worktree v0.11.0, git-repository v0.31.0, safety bump 24 crates ([`5ac9fbe`](https://github.com/Byron/gitoxide/commit/5ac9fbe265a5b61c533a2a6b3abfed2bdf7f89ad))
- - Prepare changelogs prior to release ([`30d8ca1`](https://github.com/Byron/gitoxide/commit/30d8ca19284049dcfbb0de2698cafae1d1a16b0c))
- - Release git-date v0.3.1, git-features v0.25.0, git-actor v0.15.0, git-glob v0.5.1, git-path v0.7.0, git-attributes v0.7.0, git-config-value v0.10.0, git-lock v3.0.1, git-validate v0.7.1, git-object v0.24.0, git-ref v0.21.0, git-sec v0.6.0, git-config v0.13.0, git-prompt v0.3.0, git-url v0.12.0, git-credentials v0.8.0, git-diff v0.24.0, git-discover v0.10.0, git-traverse v0.20.0, git-index v0.10.0, git-mailmap v0.7.0, git-pack v0.28.0, git-odb v0.38.0, git-packetline v0.14.1, git-transport v0.24.0, git-protocol v0.25.0, git-revision v0.8.0, git-refspec v0.5.0, git-worktree v0.10.0, git-repository v0.30.0, safety bump 26 crates ([`e6b9906`](https://github.com/Byron/gitoxide/commit/e6b9906c486b11057936da16ed6e0ec450a0fb83))
- - Prepare chnagelogs prior to git-repository release ([`7114bbb`](https://github.com/Byron/gitoxide/commit/7114bbb6732aa8571d4ab74f28ed3e26e9fbe4d0))
- - Merge branch 'main' into read-split-index ([`c57bdde`](https://github.com/Byron/gitoxide/commit/c57bdde6de37eca9672ea715962bbd02aa3eb055))
- - Merge branch 'adjustments-for-cargo' ([`083909b`](https://github.com/Byron/gitoxide/commit/083909bc7eb902eeee2002034fdb6ed88280dc5c))
- - Adjust to changes in `git-testtools` ([`4eb842c`](https://github.com/Byron/gitoxide/commit/4eb842c7150b980e1c2637217e1f9657a671cea7))
- - Release git-hash v0.10.1, git-hashtable v0.1.0 ([`7717170`](https://github.com/Byron/gitoxide/commit/771717095d9a67b0625021eb0928828ab686e772))
- - Merge branch 'main' into http-config ([`bcd9654`](https://github.com/Byron/gitoxide/commit/bcd9654e56169799eb706646da6ee1f4ef2021a9))
- - Release git-hash v0.10.0, git-features v0.24.0, git-date v0.3.0, git-actor v0.14.0, git-glob v0.5.0, git-path v0.6.0, git-quote v0.4.0, git-attributes v0.6.0, git-config-value v0.9.0, git-tempfile v3.0.0, git-lock v3.0.0, git-validate v0.7.0, git-object v0.23.0, git-ref v0.20.0, git-sec v0.5.0, git-config v0.12.0, git-command v0.2.0, git-prompt v0.2.0, git-url v0.11.0, git-credentials v0.7.0, git-diff v0.23.0, git-discover v0.9.0, git-bitmap v0.2.0, git-traverse v0.19.0, git-index v0.9.0, git-mailmap v0.6.0, git-chunk v0.4.0, git-pack v0.27.0, git-odb v0.37.0, git-packetline v0.14.0, git-transport v0.23.0, git-protocol v0.24.0, git-revision v0.7.0, git-refspec v0.4.0, git-worktree v0.9.0, git-repository v0.29.0, git-commitgraph v0.11.0, gitoxide-core v0.21.0, gitoxide v0.19.0, safety bump 28 crates ([`b2c301e`](https://github.com/Byron/gitoxide/commit/b2c301ef131ffe1871314e19f387cf10a8d2ac16))
- - Prepare changelogs prior to release ([`e4648f8`](https://github.com/Byron/gitoxide/commit/e4648f827c97e9d13636d1bbdc83dd63436e6e5c))
- - Merge branch 'version2021' ([`0e4462d`](https://github.com/Byron/gitoxide/commit/0e4462df7a5166fe85c23a779462cdca8ee013e8))
- - Upgrade edition to 2021 in most crates. ([`3d8fa8f`](https://github.com/Byron/gitoxide/commit/3d8fa8fef9800b1576beab8a5bc39b821157a5ed))
- - Merge branch 'main' into http-config ([`7c5b37d`](https://github.com/Byron/gitoxide/commit/7c5b37d28e98f59a6847368a0d0166d2dbb4acc1))
- - Release git-diff v0.22.0, git-index v0.7.1, git-pack v0.26.0, git-odb v0.36.0, git-transport v0.21.2, git-repository v0.27.0, safety bump 6 crates ([`f0cab31`](https://github.com/Byron/gitoxide/commit/f0cab317bb0c2799fa80d16f3ae1b89d6aee4284))
- - Prepare changelogs prior to release ([`f5f3a9e`](https://github.com/Byron/gitoxide/commit/f5f3a9edd038a89c8c6c4da02054e5439bcc0071))
- - Merge branch 'fixes-for-crates-index-diff' ([`255be4d`](https://github.com/Byron/gitoxide/commit/255be4ddcd6cbca0a89f286eeecdd19ff70e000f))
- - Re-export the `imara-diff` crate as `git_diff::blob::*`. ([`16b5533`](https://github.com/Byron/gitoxide/commit/16b553367518153b8f5b0bb6b23d2fcefcaac801))
- - Remove `text::with(…)` as it's not usable in practice. ([`68a3365`](https://github.com/Byron/gitoxide/commit/68a336502351ce16b804e7c099479bc974c3787c))
- - Show how the current API isn't actually working well ([`bd971e7`](https://github.com/Byron/gitoxide/commit/bd971e7aedc30285f183f4470b2fafba9236c6c4))
- - Refactor ([`395a590`](https://github.com/Byron/gitoxide/commit/395a5902b803174e18a53df6079095d25cb2fc8e))
- - Release git-features v0.23.1, git-glob v0.4.1, git-config-value v0.8.1, git-tempfile v2.0.6, git-object v0.22.1, git-ref v0.18.0, git-sec v0.4.2, git-config v0.10.0, git-prompt v0.1.1, git-url v0.10.1, git-credentials v0.6.1, git-diff v0.21.0, git-discover v0.7.0, git-index v0.7.0, git-pack v0.25.0, git-odb v0.35.0, git-transport v0.21.1, git-protocol v0.22.0, git-refspec v0.3.1, git-worktree v0.7.0, git-repository v0.26.0, git-commitgraph v0.10.0, gitoxide-core v0.19.0, gitoxide v0.17.0, safety bump 9 crates ([`d071583`](https://github.com/Byron/gitoxide/commit/d071583c5576fdf5f7717765ffed5681792aa81f))
- - Prepare changelogs prior to release ([`423af90`](https://github.com/Byron/gitoxide/commit/423af90c8202d62dc1ea4a76a0df6421d1f0aa06))
- - Merge branch 'main' into write-sparse-index (upgrade to Rust 1.65) ([`5406630`](https://github.com/Byron/gitoxide/commit/5406630466145990b5adbdadb59151036993060d))
- - Adapt in-memory size check to Rust 1.65 and below ([`1919e8e`](https://github.com/Byron/gitoxide/commit/1919e8ec2f6bca8237a0356972b86f28c18da908))
- - Merge branch 'main' into write-sparse-index ([`c4e6849`](https://github.com/Byron/gitoxide/commit/c4e68496c368611ebe17c6693d06c8147c28c717))
- - Merge branch 'gix-clone' ([`def53b3`](https://github.com/Byron/gitoxide/commit/def53b36c3dec26fa78939ab0584fe4ff930909c))
- - Adjust docs ([`381924c`](https://github.com/Byron/gitoxide/commit/381924c3fc84277b6f9c4713540f8cda449e8ad2))
- - Merge branch 'main' into gix-clone ([`fa27570`](https://github.com/Byron/gitoxide/commit/fa27570f491388cce6137af44330d76870d07202))
- - Merge branch 'imra-diff' ([`f53f942`](https://github.com/Byron/gitoxide/commit/f53f9426f206686b30abd73a201a92b1405e782d))
- - Rename `lines` module to `text`. ([`fed47d4`](https://github.com/Byron/gitoxide/commit/fed47d45b7e39958921a230b485b5b0384c8672f))
- - Replace `similar` with `imara-diff`. ([`ee26ddf`](https://github.com/Byron/gitoxide/commit/ee26ddfe645ca39024795f85bb8e1cab6b6f5863))
- - Release git-hash v0.9.11, git-features v0.23.0, git-actor v0.13.0, git-attributes v0.5.0, git-object v0.22.0, git-ref v0.17.0, git-sec v0.4.1, git-config v0.9.0, git-url v0.10.0, git-credentials v0.6.0, git-diff v0.20.0, git-discover v0.6.0, git-traverse v0.18.0, git-index v0.6.0, git-mailmap v0.5.0, git-pack v0.24.0, git-odb v0.34.0, git-packetline v0.13.1, git-transport v0.21.0, git-protocol v0.21.0, git-revision v0.6.0, git-refspec v0.3.0, git-worktree v0.6.0, git-repository v0.25.0, safety bump 24 crates ([`104d922`](https://github.com/Byron/gitoxide/commit/104d922add61ab21c534c24ce8ed37cddf3e275a))
- - Prepare changelogs for release ([`d232567`](https://github.com/Byron/gitoxide/commit/d23256701a95284857dc8d1cb37c7c94cada973c))
- - Merge branch 'main' into new-http-impl ([`702a161`](https://github.com/Byron/gitoxide/commit/702a161ef11fc959611bf44b70e9ffe04561c7ad))
- - Make fmt ([`53acf25`](https://github.com/Byron/gitoxide/commit/53acf2565743eff7cead7a42011107b2fc8d7e0e))
- - Merge branch 'diff' ([`25a7726`](https://github.com/Byron/gitoxide/commit/25a7726377fbe400ea3c4927d04e9dec99802b7b))
- - Release git-command v0.1.0, git-prompt v0.1.0, git-url v0.9.0, git-credentials v0.5.0, git-diff v0.19.0, git-mailmap v0.4.0, git-chunk v0.3.2, git-pack v0.23.0, git-odb v0.33.0, git-packetline v0.13.0, git-transport v0.20.0, git-protocol v0.20.0, git-revision v0.5.0, git-refspec v0.2.0, git-repository v0.24.0, git-commitgraph v0.9.0, gitoxide-core v0.18.0, gitoxide v0.16.0 ([`f5c36d8`](https://github.com/Byron/gitoxide/commit/f5c36d85755d1f0f503b77d9a565fad6aecf6728))
- - Release git-hash v0.9.10, git-features v0.22.5, git-date v0.2.0, git-actor v0.12.0, git-glob v0.4.0, git-path v0.5.0, git-quote v0.3.0, git-attributes v0.4.0, git-config-value v0.8.0, git-tempfile v2.0.5, git-validate v0.6.0, git-object v0.21.0, git-ref v0.16.0, git-sec v0.4.0, git-config v0.8.0, git-discover v0.5.0, git-traverse v0.17.0, git-index v0.5.0, git-worktree v0.5.0, git-testtools v0.9.0, git-command v0.1.0, git-prompt v0.1.0, git-url v0.9.0, git-credentials v0.5.0, git-diff v0.19.0, git-mailmap v0.4.0, git-chunk v0.3.2, git-pack v0.23.0, git-odb v0.33.0, git-packetline v0.13.0, git-transport v0.20.0, git-protocol v0.20.0, git-revision v0.5.0, git-refspec v0.2.0, git-repository v0.24.0, git-commitgraph v0.9.0, gitoxide-core v0.18.0, gitoxide v0.16.0, safety bump 28 crates ([`29a043b`](https://github.com/Byron/gitoxide/commit/29a043be6808a3e9199a9b26bd076fe843afe4f4))
- - Merge branch 'filter-refs' ([`fd14489`](https://github.com/Byron/gitoxide/commit/fd14489f729172d615d0fa1e8dbd605e9eacf69d))
- - More standard derives for `Change` type ([`8e46f54`](https://github.com/Byron/gitoxide/commit/8e46f547f510a6453d0304a8a41eaf9bbf3b17a3))
- - Merge branch 'main' into filter-refs-by-spec ([`1f6e5ab`](https://github.com/Byron/gitoxide/commit/1f6e5ab15f5fd8d23719b13e6aea59cd231ac0fe))
- - Merge branch 'fix-522' ([`5869e9f`](https://github.com/Byron/gitoxide/commit/5869e9ff2508d5a93c07635277af8764fcb57713))
- - Release git-hash v0.9.9 ([`da0716f`](https://github.com/Byron/gitoxide/commit/da0716f8c27b4f29cfff0e5ce7fcb3d7240f4aeb))
- - Merge branch 'main' into index-from-tree ([`bc64b96`](https://github.com/Byron/gitoxide/commit/bc64b96a2ec781c72d1d4daad38aa7fb8b74f99b))
- - Merge branch 'main' into filter-refs-by-spec ([`51dc828`](https://github.com/Byron/gitoxide/commit/51dc8282fb77b519ff7d2c94c6bd73af306cfe8b))
- - Release git-diff v0.18.1, git-discover v0.4.2, git-traverse v0.16.4, git-repository v0.23.1 ([`2571831`](https://github.com/Byron/gitoxide/commit/2571831e5939bf4ea6f19537b0c1ccd71dc99088))
- - Prepare changelog prior to release ([`fc6b958`](https://github.com/Byron/gitoxide/commit/fc6b9583d0534f70e0c8afdcad46e09a5001d62b))
- - Fix docs ([`34e899a`](https://github.com/Byron/gitoxide/commit/34e899ae0e4a23bba6dc36dfd7429c0d572736bd))
- - Merge branch 'main' into filter-refs-by-spec ([`cef0b51`](https://github.com/Byron/gitoxide/commit/cef0b51ade2a3301fa09ede7a425aa1fe3527e78))
- - Release git-object v0.20.3, git-ref v0.15.4, git-config v0.7.1, git-diff v0.18.0, git-traverse v0.16.3, git-pack v0.22.0, git-odb v0.32.0, git-url v0.7.3, git-transport v0.19.3, git-protocol v0.19.1, git-refspec v0.1.1, git-repository v0.23.0, safety bump 6 crates ([`85a3bed`](https://github.com/Byron/gitoxide/commit/85a3bedd68d2e5f36592a2f691c977dc55298279))
- - Don't degenerate errors when accessing objects ([`6d9533d`](https://github.com/Byron/gitoxide/commit/6d9533dd987241fe0ddf0e401512ca6bdf0d3ff0))
- - Use thiserror instead of quickerror ([`0661d48`](https://github.com/Byron/gitoxide/commit/0661d4877978ce17117233f6116be1f7b512f449))
- - Fix docs ([`bfdcb13`](https://github.com/Byron/gitoxide/commit/bfdcb13b11faae161c3e3f5d20c83d41a91b9de9))
- - Merge branch 'main' into filter-refs-by-spec ([`cfa1440`](https://github.com/Byron/gitoxide/commit/cfa144031dbcac2707ab0cec012bc35e78f9c475))
- - Release git-date v0.0.5, git-hash v0.9.8, git-features v0.22.2, git-actor v0.11.3, git-glob v0.3.2, git-quote v0.2.1, git-attributes v0.3.2, git-tempfile v2.0.4, git-lock v2.1.1, git-validate v0.5.5, git-object v0.20.2, git-ref v0.15.2, git-sec v0.3.1, git-config v0.7.0, git-credentials v0.4.0, git-diff v0.17.2, git-discover v0.4.1, git-bitmap v0.1.2, git-index v0.4.2, git-mailmap v0.3.2, git-chunk v0.3.1, git-traverse v0.16.2, git-pack v0.21.2, git-odb v0.31.2, git-packetline v0.12.7, git-url v0.7.2, git-transport v0.19.2, git-protocol v0.19.0, git-revision v0.4.2, git-refspec v0.1.0, git-worktree v0.4.2, git-repository v0.22.0, safety bump 4 crates ([`4974eca`](https://github.com/Byron/gitoxide/commit/4974eca96d525d1ee4f8cad79bb713af7a18bf9d))
- - Merge branch 'main' into remote-ls-refs ([`e2ee3de`](https://github.com/Byron/gitoxide/commit/e2ee3ded97e5c449933712883535b30d151c7c78))
- - Merge branch 'docsrs-show-features' ([`31c2351`](https://github.com/Byron/gitoxide/commit/31c235140cad212d16a56195763fbddd971d87ce))
- - Uniformize deny attributes ([`f7f136d`](https://github.com/Byron/gitoxide/commit/f7f136dbe4f86e7dee1d54835c420ec07c96cd78))
- - Remove default link to cargo doc everywhere ([`533e887`](https://github.com/Byron/gitoxide/commit/533e887e80c5f7ede8392884562e1c5ba56fb9a8))
- - Merge branch 'main' into remote-ls-refs ([`bd5f3e8`](https://github.com/Byron/gitoxide/commit/bd5f3e8db7e0bb4abfb7b0f79f585ab82c3a14ab))
- - Release git-date v0.0.3, git-actor v0.11.1, git-attributes v0.3.1, git-tempfile v2.0.3, git-object v0.20.1, git-ref v0.15.1, git-config v0.6.1, git-diff v0.17.1, git-discover v0.4.0, git-bitmap v0.1.1, git-index v0.4.1, git-mailmap v0.3.1, git-traverse v0.16.1, git-pack v0.21.1, git-odb v0.31.1, git-packetline v0.12.6, git-url v0.7.1, git-transport v0.19.1, git-protocol v0.18.1, git-revision v0.4.0, git-worktree v0.4.1, git-repository v0.21.0, safety bump 5 crates ([`c96473d`](https://github.com/Byron/gitoxide/commit/c96473dce21c3464aacbc0a62d520c1a33172611))
- - Prepare changelogs prior to reelase ([`c06ae1c`](https://github.com/Byron/gitoxide/commit/c06ae1c606b6af9c2a12021103d99c2810750d60))
- - Release git-hash v0.9.7, git-features v0.22.1 ([`232784a`](https://github.com/Byron/gitoxide/commit/232784a59ded3e8016e4257c7e146ad385cdd64a))
- - Merge pull request #2 from SidneyDouw/main ([`ce885ad`](https://github.com/Byron/gitoxide/commit/ce885ad4c3324c09c83751c32e014f246c748766))
- - Merge branch 'Byron:main' into main ([`9b9ea02`](https://github.com/Byron/gitoxide/commit/9b9ea0275f8ff5862f24cf5a4ca53bb1cd610709))
- - Merge branch 'main' into rev-parse-delegate ([`6da8250`](https://github.com/Byron/gitoxide/commit/6da82507588d3bc849217c11d9a1d398b67f2ed6))
- - Merge branch 'main' into pathspec ([`7b61506`](https://github.com/Byron/gitoxide/commit/7b615060712565f515515e35a3e8346278ad770c))
- - Merge branch 'kianmeng-fix-typos' ([`4e7b343`](https://github.com/Byron/gitoxide/commit/4e7b34349c0a01ad8686bbb4eb987e9338259d9c))
- - Revert archive back to original ([`ef905d4`](https://github.com/Byron/gitoxide/commit/ef905d41053e3f08c9eca9eeaac078d2d2650271))
- - Fix typos ([`e9fcb70`](https://github.com/Byron/gitoxide/commit/e9fcb70e429edb2974afa3f58d181f3ef14c3da3))
- - Release git-config v0.6.0, git-credentials v0.3.0, git-diff v0.17.0, git-discover v0.3.0, git-index v0.4.0, git-mailmap v0.3.0, git-traverse v0.16.0, git-pack v0.21.0, git-odb v0.31.0, git-url v0.7.0, git-transport v0.19.0, git-protocol v0.18.0, git-revision v0.3.0, git-worktree v0.4.0, git-repository v0.20.0, git-commitgraph v0.8.0, gitoxide-core v0.15.0, gitoxide v0.13.0 ([`aa639d8`](https://github.com/Byron/gitoxide/commit/aa639d8c43f3098cc4a5b50614c5ae94a8156928))
- - Release git-hash v0.9.6, git-features v0.22.0, git-date v0.0.2, git-actor v0.11.0, git-glob v0.3.1, git-path v0.4.0, git-attributes v0.3.0, git-tempfile v2.0.2, git-object v0.20.0, git-ref v0.15.0, git-sec v0.3.0, git-config v0.6.0, git-credentials v0.3.0, git-diff v0.17.0, git-discover v0.3.0, git-index v0.4.0, git-mailmap v0.3.0, git-traverse v0.16.0, git-pack v0.21.0, git-odb v0.31.0, git-url v0.7.0, git-transport v0.19.0, git-protocol v0.18.0, git-revision v0.3.0, git-worktree v0.4.0, git-repository v0.20.0, git-commitgraph v0.8.0, gitoxide-core v0.15.0, gitoxide v0.13.0, safety bump 22 crates ([`4737b1e`](https://github.com/Byron/gitoxide/commit/4737b1eea1d4c9a8d5a69fb63ecac5aa5d378ae5))
- - Prepare changelog prior to release ([`3c50625`](https://github.com/Byron/gitoxide/commit/3c50625fa51350ec885b0f38ec9e92f9444df0f9))
- - Merge pull request #1 from Byron/main ([`085e76b`](https://github.com/Byron/gitoxide/commit/085e76b121291ed9bd324139105d2bd4117bedf8))
- - Merge branch 'main' into pathspec ([`89ea12b`](https://github.com/Byron/gitoxide/commit/89ea12b558bcc056b892193ee8fb44b8664b5da4))
- - Generally avoid using `target_os = "windows"` in favor of `cfg(windows)` and negations ([`91d5402`](https://github.com/Byron/gitoxide/commit/91d54026a61c2aae5e3e1341d271acf16478cd83))
- - Merge branch 'main' into SidneyDouw-pathspec ([`a22b1d8`](https://github.com/Byron/gitoxide/commit/a22b1d88a21311d44509018729c3ef1936cf052a))
- - Merge branch 'main' into git_includeif ([`598c853`](https://github.com/Byron/gitoxide/commit/598c853087fcf8f77299aa5b9803bcec705c0cd0))
- - Release git-hash v0.9.4, git-features v0.21.0, git-actor v0.10.0, git-glob v0.3.0, git-path v0.1.1, git-attributes v0.1.0, git-sec v0.1.0, git-config v0.3.0, git-credentials v0.1.0, git-validate v0.5.4, git-object v0.19.0, git-diff v0.16.0, git-lock v2.1.0, git-ref v0.13.0, git-discover v0.1.0, git-index v0.3.0, git-mailmap v0.2.0, git-traverse v0.15.0, git-pack v0.19.0, git-odb v0.29.0, git-packetline v0.12.5, git-url v0.5.0, git-transport v0.17.0, git-protocol v0.16.0, git-revision v0.2.0, git-worktree v0.2.0, git-repository v0.17.0, safety bump 20 crates ([`654cf39`](https://github.com/Byron/gitoxide/commit/654cf39c92d5aa4c8d542a6cadf13d4acef6a78e))
- - Merge branch 'main' into git_includeif ([`b1bfc8f`](https://github.com/Byron/gitoxide/commit/b1bfc8fe8efb6d8941f54dddd0fcad99aa13ed6c))
- - Merge branch 'basic-worktree-support' ([`e058bda`](https://github.com/Byron/gitoxide/commit/e058bdabf8449b6a6fdff851e3929137d9b71568))
- - Merge branch 'main' into repo-status ([`0eb2372`](https://github.com/Byron/gitoxide/commit/0eb23721dca78f6e6bf864c5c3a3e44df8b419f0))
- - Merge branch 'test-archive-support' ([`350df01`](https://github.com/Byron/gitoxide/commit/350df01042d6ca8b93f8737fa101e69b50535a0f))
- - Release git-config v0.2.1, git-diff v0.15.0, git-traverse v0.14.0, git-pack v0.18.0, git-odb v0.28.0, git-ref v0.12.1, git-revision v0.1.0, git-repository v0.16.0, gitoxide-core v0.14.0, gitoxide v0.12.0, safety bump 6 crates ([`b612021`](https://github.com/Byron/gitoxide/commit/b612021683ba709b693bd48aef3e2e3c2f5b9ead))
- - Remove left-over attribute ([`27df580`](https://github.com/Byron/gitoxide/commit/27df580b1f7b3a096f759763cda7042825abcfca))
- - Remove deprecated compound and linked object databases ([`8c5ae77`](https://github.com/Byron/gitoxide/commit/8c5ae77f06a64c57df9a9ad1190266896a223dbe))
- - Release git-diff v0.14.0, git-bitmap v0.1.0, git-index v0.2.0, git-tempfile v2.0.1, git-lock v2.0.0, git-mailmap v0.1.0, git-traverse v0.13.0, git-pack v0.17.0, git-quote v0.2.0, git-odb v0.27.0, git-packetline v0.12.4, git-url v0.4.0, git-transport v0.16.0, git-protocol v0.15.0, git-ref v0.12.0, git-worktree v0.1.0, git-repository v0.15.0, cargo-smart-release v0.9.0, safety bump 5 crates ([`e58dc30`](https://github.com/Byron/gitoxide/commit/e58dc3084cf17a9f618ae3a6554a7323e44428bf))
- - Release git-hash v0.9.3, git-features v0.20.0, git-config v0.2.0, safety bump 12 crates ([`f0cbb24`](https://github.com/Byron/gitoxide/commit/f0cbb24b2e3d8f028be0e773f9da530da2656257))
- - Release git-diff v0.13.0, git-tempfile v1.0.4, git-chunk v0.3.0, git-traverse v0.12.0, git-pack v0.16.0, git-odb v0.26.0, git-packetline v0.12.3, git-url v0.3.5, git-transport v0.15.0, git-protocol v0.14.0, git-ref v0.11.0, git-repository v0.14.0, cargo-smart-release v0.8.0 ([`1b76119`](https://github.com/Byron/gitoxide/commit/1b76119259b8168aeb99cbbec233f7ddaa2d7d2c))
- - Release git-actor v0.8.0, git-config v0.1.10, git-object v0.17.0, git-diff v0.13.0, git-tempfile v1.0.4, git-chunk v0.3.0, git-traverse v0.12.0, git-pack v0.16.0, git-odb v0.26.0, git-packetline v0.12.3, git-url v0.3.5, git-transport v0.15.0, git-protocol v0.14.0, git-ref v0.11.0, git-repository v0.14.0, cargo-smart-release v0.8.0 ([`8f57c29`](https://github.com/Byron/gitoxide/commit/8f57c297d7d6ed68cf51415ea7ede4bf9263326e))
- - Release git-features v0.19.1, git-actor v0.8.0, git-config v0.1.10, git-object v0.17.0, git-diff v0.13.0, git-tempfile v1.0.4, git-chunk v0.3.0, git-traverse v0.12.0, git-pack v0.16.0, git-odb v0.26.0, git-packetline v0.12.3, git-url v0.3.5, git-transport v0.15.0, git-protocol v0.14.0, git-ref v0.11.0, git-repository v0.14.0, cargo-smart-release v0.8.0 ([`d78aab7`](https://github.com/Byron/gitoxide/commit/d78aab7b9c4b431d437ac70a0ef96263acb64e46))
- - Release git-hash v0.9.1, git-features v0.19.1, git-actor v0.8.0, git-config v0.1.10, git-object v0.17.0, git-diff v0.13.0, git-tempfile v1.0.4, git-chunk v0.3.0, git-traverse v0.12.0, git-pack v0.16.0, git-odb v0.26.0, git-packetline v0.12.3, git-url v0.3.5, git-transport v0.15.0, git-protocol v0.14.0, git-ref v0.11.0, git-repository v0.14.0, cargo-smart-release v0.8.0, safety bump 4 crates ([`373cbc8`](https://github.com/Byron/gitoxide/commit/373cbc877f7ad60dac682e57c52a7b90f108ebe3))
- - Prepar changelogs for cargo-smart-release release ([`8900d69`](https://github.com/Byron/gitoxide/commit/8900d699226eb0995be70d66249827ce348261df))
- - Release git-bitmap v0.0.1, git-hash v0.9.0, git-features v0.19.0, git-index v0.1.0, safety bump 9 crates ([`4624725`](https://github.com/Byron/gitoxide/commit/4624725f54a34dd6b35d3632fb3516965922f60a))
- - Merge branch 'sync-db-draft' ([`7d2e20c`](https://github.com/Byron/gitoxide/commit/7d2e20c6fedc2c7e71a307d8d072412fa847a4aa))
- - Thanks clippy ([`7dd2313`](https://github.com/Byron/gitoxide/commit/7dd2313d980fe7c058319ae66d313b3097e3ae5f))
- - Release git-actor v0.7.0, git-config v0.1.9, git-object v0.16.0, git-diff v0.12.0, git-traverse v0.11.0, git-pack v0.15.0, git-odb v0.25.0, git-packetline v0.12.2, git-transport v0.14.0, git-protocol v0.13.0, git-ref v0.10.0, git-repository v0.13.0, cargo-smart-release v0.7.0 ([`d3f9227`](https://github.com/Byron/gitoxide/commit/d3f922781a81e8fbb81aa47afdbe9afeb06d666b))
- - Release git-features v0.18.0, git-actor v0.7.0, git-config v0.1.9, git-object v0.16.0, git-diff v0.12.0, git-traverse v0.11.0, git-pack v0.15.0, git-odb v0.25.0, git-packetline v0.12.2, git-transport v0.14.0, git-protocol v0.13.0, git-ref v0.10.0, git-repository v0.13.0, cargo-smart-release v0.7.0, safety bump 12 crates ([`acd3737`](https://github.com/Byron/gitoxide/commit/acd37371dcd92ebac3d1f039224d02f2b4e9fa0b))
- - Adjust changelogs prior to release ([`ec38950`](https://github.com/Byron/gitoxide/commit/ec3895005d141abe79764eaff7c0f04153e38d73))
- - Release git-config v0.1.8, git-object v0.15.1, git-diff v0.11.1, git-traverse v0.10.1, git-pack v0.14.0, git-odb v0.24.0, git-packetline v0.12.1, git-transport v0.13.1, git-protocol v0.12.1, git-ref v0.9.1, git-repository v0.12.0, cargo-smart-release v0.6.0 ([`f606fa9`](https://github.com/Byron/gitoxide/commit/f606fa9a0ca338534252df8921cd5e9d3875bf94))
- - Better changelog descriptions. ([`f69b2d6`](https://github.com/Byron/gitoxide/commit/f69b2d627099639bc144fd94fde678d84a10d6f7))
- - Adjusting changelogs prior to release of git-config v0.1.8, git-object v0.15.1, git-diff v0.11.1, git-traverse v0.10.1, git-pack v0.14.0, git-odb v0.24.0, git-packetline v0.12.1, git-transport v0.13.1, git-protocol v0.12.1, git-ref v0.9.1, git-repository v0.12.0, cargo-smart-release v0.6.0, safety bump 5 crates ([`39b40c8`](https://github.com/Byron/gitoxide/commit/39b40c8c3691029cc146b893fa0d8d25d56d0819))
- - Release git-hash v0.8.0, git-features v0.17.0, git-actor v0.6.0, git-object v0.15.0, git-diff v0.11.0, git-traverse v0.10.0, git-pack v0.13.0, git-odb v0.23.0, git-packetline v0.12.0, git-transport v0.13.0, git-protocol v0.12.0, git-ref v0.9.0, git-repository v0.11.0, git-commitgraph v0.6.0, gitoxide-core v0.12.0, gitoxide v0.10.0, cargo-smart-release v0.5.0, safety bump 16 crates ([`0e02953`](https://github.com/Byron/gitoxide/commit/0e029537a7f6242d02ccf7e63d8d92f5246e6c5e))
- - Release git-hash v0.7.0, git-features v0.16.5, git-actor v0.5.3, git-config v0.1.7, git-validate v0.5.3, git-object v0.14.1, git-diff v0.10.0, git-tempfile v1.0.3, git-lock v1.0.1, git-traverse v0.9.0, git-pack v0.12.0, git-odb v0.22.0, git-packetline v0.11.0, git-url v0.3.4, git-transport v0.12.0, git-protocol v0.11.0, git-ref v0.8.0, git-repository v0.10.0, cargo-smart-release v0.4.0 ([`59ffbd9`](https://github.com/Byron/gitoxide/commit/59ffbd9f15583c8248b7f48b3f55ec6faffe7cfe))
- - Adjusting changelogs prior to release of git-hash v0.7.0, git-features v0.16.5, git-actor v0.5.3, git-validate v0.5.3, git-object v0.14.1, git-diff v0.10.0, git-tempfile v1.0.3, git-lock v1.0.1, git-traverse v0.9.0, git-pack v0.12.0, git-odb v0.22.0, git-packetline v0.11.0, git-url v0.3.4, git-transport v0.12.0, git-protocol v0.11.0, git-ref v0.8.0, git-repository v0.10.0, cargo-smart-release v0.4.0, safety bump 3 crates ([`a474395`](https://github.com/Byron/gitoxide/commit/a47439590e36b1cb8b516b6053fd5cbfc42efed7))
- - Make fmt, but now it picked up some parts that usually don't get altered… ([`01f7b72`](https://github.com/Byron/gitoxide/commit/01f7b729337bd2c99498321c479a9a13b1858e3e))
- - Update changelogs just for fun ([`21541b3`](https://github.com/Byron/gitoxide/commit/21541b3301de1e053fc0e84373be60d2162fbaae))
- - Merge branch 'changelog-generation' ([`bf0106e`](https://github.com/Byron/gitoxide/commit/bf0106ea21734d4e59d190b424c22743c22da966))
- - Bump git-traverse v0.9.0, safety bump 8 crates ([`d39fabb`](https://github.com/Byron/gitoxide/commit/d39fabb8757369aa19452a457f610fe21dc13a14))
- - Release git-diff v0.9.2 ([`17c411f`](https://github.com/Byron/gitoxide/commit/17c411f7679f4386eb3225c56dac80084787ed2b))
- - Bump git-object v0.14.0 ([`d4fc81f`](https://github.com/Byron/gitoxide/commit/d4fc81f6390443f8c8561d91ac27ea4a6318fb62))
- - Release git-diff v0.9.1 ([`cedae8d`](https://github.com/Byron/gitoxide/commit/cedae8d61f44a2de46edbac8afe19b7d8fa15cbf))
- - Merge branch 'repository-integration' ([`49f5453`](https://github.com/Byron/gitoxide/commit/49f5453629646ac24d752f53c532e5f67eb09374))
- - [repository #190] first shot at ancestor iteration… ([`85f1a48`](https://github.com/Byron/gitoxide/commit/85f1a48ea39f3b224e8d0ba3728dd75e03a6edc3))
- - Bump git-hash v0.6.0 ([`6efd90d`](https://github.com/Byron/gitoxide/commit/6efd90db54f7f7441b76159dba3be80c15657a3d))
- - [pack #179] refactor ([`ab6554b`](https://github.com/Byron/gitoxide/commit/ab6554b0cd5838f1ea4e82f6b5019798288076fa))
- - Bump git-diff v0.9.0 ([`2e2e798`](https://github.com/Byron/gitoxide/commit/2e2e7983178b3af7e5684995de68ed5d020927ec))
- - [object #177] dissolve 'immutable' module ([`70e11c2`](https://github.com/Byron/gitoxide/commit/70e11c21b0637cd250f54381d5490e9976880ad9))
- - [object #177] migrate immutable::tree to crate::tree ([`fa5cd06`](https://github.com/Byron/gitoxide/commit/fa5cd0648d5c855060ab2b75ee933851987c2dcf))
- - [object #177] move immutable::* to crate::*Ref, start `iter` adjustments ([`461dc53`](https://github.com/Byron/gitoxide/commit/461dc53ba3bc07d55fdb4aad7570ba9176a8b360))
- - Release git-object v0.13.0 ([`708fc5a`](https://github.com/Byron/gitoxide/commit/708fc5abd8af4dd7459f388c7092bf35915c6662))
- - Release git-diff v0.8.2 ([`3ad0829`](https://github.com/Byron/gitoxide/commit/3ad082939c52cfd6d679ebefcbaea4b16b12cfdb))
- - Apply nightly rustfmt rules. ([`5e0edba`](https://github.com/Byron/gitoxide/commit/5e0edbadb39673d4de640f112fa306349fb11814))
- - Release git-diff v0.8.1 ([`41b218f`](https://github.com/Byron/gitoxide/commit/41b218f456ceea448d3b6a524e05970c478bdf6b))
- - Remove dev-dependency cycles by removing their version ([`c40faca`](https://github.com/Byron/gitoxide/commit/c40faca41632cd2a226daf4ddf5293b65d1fdc82))
- - Release git-diff v0.8.0, git-odb v0.20.0, git-pack v0.8.0, git-traverse v0.7.0 ([`f123f69`](https://github.com/Byron/gitoxide/commit/f123f69c7a4f9fd1c98bd2f60ebc953a6739fe04))
- - Release git-diff v0.7.0, git-odb v0.19.0, git-pack v0.7.0, git-traverse v0.6.0 ([`c67291f`](https://github.com/Byron/gitoxide/commit/c67291ff9bcdff9a747d87241f6a71015607af05))
- - Release git-object v0.12.0 ([`7006150`](https://github.com/Byron/gitoxide/commit/7006150ac314d19814608723f69f6e70a72f9262))
- - (cargo-release) version 0.18.0 ([`b327590`](https://github.com/Byron/gitoxide/commit/b327590d02fec5536c380b2d39dd7be089ca7c40))
- - (cargo-release) version 0.6.0 ([`4b71e15`](https://github.com/Byron/gitoxide/commit/4b71e15c3ba4a17ff2da5a5ef79986a2832fa3f2))
- - (cargo-release) version 0.5.0 ([`e21142b`](https://github.com/Byron/gitoxide/commit/e21142ba1a113b2afc4725d4d4225dff519c513a))
- - (cargo-release) version 0.17.0 ([`c52a491`](https://github.com/Byron/gitoxide/commit/c52a49176bd294bb36db74b4293cdb684a2ab7f6))
- - (cargo-release) version 0.5.0 ([`1687e59`](https://github.com/Byron/gitoxide/commit/1687e599be98d97925fbab594f31cf5558e9d2b1))
- - (cargo-release) version 0.4.0 ([`28e58f6`](https://github.com/Byron/gitoxide/commit/28e58f6b43a44e010da749a5618df02441f0d2e8))
- - (cargo-release) version 0.11.0 ([`a5be31c`](https://github.com/Byron/gitoxide/commit/a5be31c4cf7c0b538a1ed4a52ff5c3a992c6feff))
- - Revert "break more dev-depedency cycles up to git-odb" ([`22337ce`](https://github.com/Byron/gitoxide/commit/22337ce23995eee474e7dfb2e37fb56814522942))
- - (cargo-release) version 0.4.1 ([`9790c15`](https://github.com/Byron/gitoxide/commit/9790c1590ec7180b76241b9f5ad7711d13abc7cc))
- - Break more dev-depedency cycles up to git-odb ([`7ee278b`](https://github.com/Byron/gitoxide/commit/7ee278bf5b04adc5e4ab82cb83a3519f93587176))
- - (cargo-release) version 0.5.0 ([`ae02dab`](https://github.com/Byron/gitoxide/commit/ae02dabae961089a92a21e6a60a7006de4b56dad))
- - Clippy on tests and thanks clippy ([`a77a71c`](https://github.com/Byron/gitoxide/commit/a77a71cf02d328a2a964388928d6b2a235a0aa85))
- - Refactor ([`a92f1e6`](https://github.com/Byron/gitoxide/commit/a92f1e68beb0f946d0e117934b244d5aa1b6b5fc))
- - (cargo-release) version 0.4.0 ([`866f86f`](https://github.com/Byron/gitoxide/commit/866f86f59e66652968dcafc1a57912f9849cb21d))
- - [git-ref] the first failing test ([`7e802a0`](https://github.com/Byron/gitoxide/commit/7e802a0576230dfc666c253d484ea255f265f92f))
- - [git-odb] refactor ([`2958145`](https://github.com/Byron/gitoxide/commit/2958145a0ae1ef582bbf88352f5567d5c2b5eaf0))
- - (cargo-release) version 0.16.0 ([`769c649`](https://github.com/Byron/gitoxide/commit/769c649c00c009bf5a3f7c0611a7b999618f2938))
- - [git-odb] refactor ([`721303d`](https://github.com/Byron/gitoxide/commit/721303db232f87857aae58e12b342e5fb0139306))
- - [git-odb] refactor ([`ea224e9`](https://github.com/Byron/gitoxide/commit/ea224e9ee5f7efcbf4942a2a6fc7e4d790b2be50))
- - [git-odb] refactor ([`6a1b16a`](https://github.com/Byron/gitoxide/commit/6a1b16ae98edc9a694b945a12a7866eb17fc6be3))
- - (cargo-release) version 0.10.0 ([`5d7ee6a`](https://github.com/Byron/gitoxide/commit/5d7ee6a105abbb6efeed8624bade936bb59dbc55))
- - [git-traverse] fix potential lifetime issue ([`fcf2e8f`](https://github.com/Byron/gitoxide/commit/fcf2e8fb5356e5d4fb541347a9ca37306362815a))
- - [git-diff] refactor ([`fa8b4e8`](https://github.com/Byron/gitoxide/commit/fa8b4e8549c5992b8e622979aba3d11a6197bcc3))
- - [git-diff] refactor ([`9373cd6`](https://github.com/Byron/gitoxide/commit/9373cd6281b679d556255893ab0252e33bb86e77))
- - [git-diff] refactor ([`087e853`](https://github.com/Byron/gitoxide/commit/087e85367c27bb3684c6ad543c7eae46762e5e44))
- - (cargo-release) version 0.4.0 ([`c85d59a`](https://github.com/Byron/gitoxide/commit/c85d59a9a63d3cb503d906dcbeff2e585e4397e4))
- - [git-diff] enforce greater restraint when using path-ids ([`ad89320`](https://github.com/Byron/gitoxide/commit/ad893203912d60f382dab66bcd38e2fc312b7246))
- - (cargo-release) version 0.3.0 ([`684de4b`](https://github.com/Byron/gitoxide/commit/684de4b376ecd4cc5330f7ac8643352ea9580ed3))
- - (cargo-release) version 0.15.0 ([`d91b241`](https://github.com/Byron/gitoxide/commit/d91b2412381e3c8c1f24c38469e821c3c3960e34))
- - (cargo-release) version 0.3.0 ([`3f2f8de`](https://github.com/Byron/gitoxide/commit/3f2f8de01088f8bf09ff04443534db513c522f6c))
- - (cargo-release) version 0.2.0 ([`3fb8377`](https://github.com/Byron/gitoxide/commit/3fb8377ff36422fe7607fb9172edf8bd5a4db995))
- - (cargo-release) version 0.9.0 ([`84897fd`](https://github.com/Byron/gitoxide/commit/84897fd8e6e1b0269da0303d6a0de8f9e0eb58e5))
- - Refactor ([`082f8d0`](https://github.com/Byron/gitoxide/commit/082f8d0a4219246050d4594ba8cf769c8f5cdc90))
- - [traverse-tree] one test to pin implementation down a little ([`f0aeee1`](https://github.com/Byron/gitoxide/commit/f0aeee1ca3d9c0fd1290c1912226c7dae396e10b))
- - Refactor ([`cceff1c`](https://github.com/Byron/gitoxide/commit/cceff1cf5297a6e507f8b44672181ba2600c748c))
- - (cargo-release) version 0.14.0 ([`d9514ee`](https://github.com/Byron/gitoxide/commit/d9514eec64579ef77c9f2ac5dfe87cd302180eb9))
- - (cargo-release) version 0.2.0 ([`ca48e06`](https://github.com/Byron/gitoxide/commit/ca48e06b19076db961d81f8759ae564d5a5b7f6c))
- - And it's a wrap for git-diff docs for now ([`9e09dd5`](https://github.com/Byron/gitoxide/commit/9e09dd560a23d52d0469ce4fc13de01f7efce227))
- - Refactor ([`6e6453d`](https://github.com/Byron/gitoxide/commit/6e6453d9e044499c9ee0a85d79dd75906adb9fb8))
- - [traversal] Add remaining missing docs ([`2f573f3`](https://github.com/Byron/gitoxide/commit/2f573f39c47879f7f318be9efa357e10a9e14ed2))
- - Refactor ([`c0318cf`](https://github.com/Byron/gitoxide/commit/c0318cfa13dc32cf6c01879feae60158bc46d708))
- - Git-diff docs ([`76af15b`](https://github.com/Byron/gitoxide/commit/76af15b708842fd0adaef6f685fd40101e8f7d72))
- - Rename 'Locate' to 'Find' - shorter and just as good ([`60f72f5`](https://github.com/Byron/gitoxide/commit/60f72f573a7696323e09bf4add80d5fbce22c99d))
- - (cargo-release) version 0.13.0 ([`5c791af`](https://github.com/Byron/gitoxide/commit/5c791af217fac6a171d174ad9f4ee5f4d5282892))
- - [traversal] experiment uses git-traverse ([`3609356`](https://github.com/Byron/gitoxide/commit/360935640cbae5b691dcd976422bf00f9768e1c0))
- - [changes] more flexible handle of state ([`11db16b`](https://github.com/Byron/gitoxide/commit/11db16b585e7551fa0d85644ee085b95a9dc2c1e))
- - A new crate: git-traverse ([`1a9af50`](https://github.com/Byron/gitoxide/commit/1a9af50f1fca0e7e939f339b885c66dcb95e44e5))
- - Git-diff - fix include directive ([`c684382`](https://github.com/Byron/gitoxide/commit/c684382f5cac8c667a0a19b9b2cc95bd32d025d5))
- - Prepare test utilities for release… ([`d35e654`](https://github.com/Byron/gitoxide/commit/d35e654747f96cec93bdecd1314ce325129cbc44))
- - (cargo-release) version 0.8.0 ([`a1ce210`](https://github.com/Byron/gitoxide/commit/a1ce210003ff07bf11291018bb182cbc7913647b))
- - (cargo-release) version 0.3.0 ([`e9665c7`](https://github.com/Byron/gitoxide/commit/e9665c784ae7e5cdaf662151395ee2355e9b57b6))
- - (cargo-release) version 0.1.0 ([`cb7b667`](https://github.com/Byron/gitoxide/commit/cb7b667255eafb6e378569892f47574533a698dc))
- - [traversal] run libgit2 parallel first to have a chance to get data more quickly ([`0a3564d`](https://github.com/Byron/gitoxide/commit/0a3564d5e949e328ee2923ee1b96a5d369102f9b))
- - [traversal] add CommitIter::tree_id() convenience method ([`6affd9d`](https://github.com/Byron/gitoxide/commit/6affd9d90d56d89774fcd4843638309a198815bf))
- - [tree-diff] another test, but no new outcome except that it seems to work ([`e295b53`](https://github.com/Byron/gitoxide/commit/e295b539df0bb3e4ae7093f09d6dcda8326029c5))
- - [tree-diff] And another test that showed something was indeed wrong ([`362680f`](https://github.com/Byron/gitoxide/commit/362680ff77f00dd305939090cb903003ff7be679))
- - Refactor ([`85c5781`](https://github.com/Byron/gitoxide/commit/85c5781def8b45b01d4e46af97bbf24e1aa6da88))
- - Refactor ([`109c4e0`](https://github.com/Byron/gitoxide/commit/109c4e0bf2ecb307da882d42584f769da19db02d))
- - Refactor ([`e7a7ee8`](https://github.com/Byron/gitoxide/commit/e7a7ee81b0b40336671b28b7eecbac6ce40c4c23))
- - [tree-diff] Beginning of more nested test-suite… ([`b8a90e7`](https://github.com/Byron/gitoxide/commit/b8a90e7c9347b0eefdbef6f4c724cc0561cd79c9))
- - [tree-diff] the last todo, gone by test ([`d7418f3`](https://github.com/Byron/gitoxide/commit/d7418f3342319a31b3f591ecfe1d5d9b1b198e9c))
- - [tree-diff] consider that windows does do symlinks differently ([`b1b6e00`](https://github.com/Byron/gitoxide/commit/b1b6e0014dd02b66db538a262c4a0f7f891870e5))
- - [tree-diff] another green test ([`2627df0`](https://github.com/Byron/gitoxide/commit/2627df0bbb9da9eb8a3d1bdbe725fe35bf24071e))
- - [tree-diff] be independent on commit hashes ([`05e8e4a`](https://github.com/Byron/gitoxide/commit/05e8e4a060d8e47e6d98e188d8a93b01947f8035))
- - [tree-diff] another green test ([`1bfa9da`](https://github.com/Byron/gitoxide/commit/1bfa9daa95bf5a5643f3b70fdb8031e757ae1506))
- - [tree-diff] another green test ([`9ca57fa`](https://github.com/Byron/gitoxide/commit/9ca57fa9bc7a52170d109b323b1b1a74172604c1))
- - [tree-diff] a new failing test ([`c6eb677`](https://github.com/Byron/gitoxide/commit/c6eb6773f6768f3b24a4267ba2e0d3e6ce0aaa14))
- - Tree-diff] another test ([`1eb961c`](https://github.com/Byron/gitoxide/commit/1eb961c8f22e8dc4a1988da09ce6521ca26fbfb4))
- - [tree-diff] less todos (that break tests if present) ([`03f87fe`](https://github.com/Byron/gitoxide/commit/03f87fe4bfa002aec57a074c64835ceab120fee9))
- - [tree-diff] another test ([`b23012e`](https://github.com/Byron/gitoxide/commit/b23012ebb943a0382b5cc3c2757a763f9183dda8))
- - [tree-diff] looks like windows now does line ending conversions for us ([`ff32a8f`](https://github.com/Byron/gitoxide/commit/ff32a8f98d96a7fa28c7e0f4021d4a7ed7e30787))
- - [tree-diff] another green test ([`ec681da`](https://github.com/Byron/gitoxide/commit/ec681da870e1677efc6c97dba35c1ccf21ea4724))
- - Refactor ([`d550936`](https://github.com/Byron/gitoxide/commit/d5509369f509feddb1c3c10bae8b65c5dd3da35f))
- - [tree-diff] one more test green + refactor ([`bc5549d`](https://github.com/Byron/gitoxide/commit/bc5549db2ad16222761219d8652caf64867a889f))
- - [tree-diff] ManuallyDrop turns of drop behaviour, and I think it's Ok… ([`b885805`](https://github.com/Byron/gitoxide/commit/b885805e9d9cf5a02635b86cd5f86db5bbf57a4e))
- - [tree-diff] [FAIL] try to use peekable()… ([`0dcdc0e`](https://github.com/Byron/gitoxide/commit/0dcdc0efd59dda8a14db38c8a064d7caca9d1e0d))
- - [tree-diff] a step towards catching up with rhs ([`bbe7beb`](https://github.com/Byron/gitoxide/commit/bbe7beb606071610f1506ab1f29456eb79f56f8b))
- - [tree-diff] more tests (none of which hits new code paths) ([`791c429`](https://github.com/Byron/gitoxide/commit/791c4291926fd3aa2ab413d1058b2257976e8d87))
- - [tree-diff] deletion of directory and replacing it with a file ([`28e3fdd`](https://github.com/Byron/gitoxide/commit/28e3fdd54036dcd4a227062e9db01017196c20e0))
- - [tree-diff] test modification within a directory ([`ff82a82`](https://github.com/Byron/gitoxide/commit/ff82a82c1bd1b884afddea5baffb7448437561d1))
- - Thanks clippy ([`c223e31`](https://github.com/Byron/gitoxide/commit/c223e31074d989024e22e8331eeb4280fb01cfab))
- - [tree-diff] The first example of recursion works ([`f86566c`](https://github.com/Byron/gitoxide/commit/f86566c646d8c9a1bb0304508faecc0e2eb163d8))
- - Step towards zero-alloc traversal ([`f554c77`](https://github.com/Byron/gitoxide/commit/f554c77b8371deb987e2365381b85dd6d4325b74))
- - Refactor ([`ca13594`](https://github.com/Byron/gitoxide/commit/ca1359414c6dc0ca3f9052299c7f088d83b38777))
- - Refactor ([`aa1897d`](https://github.com/Byron/gitoxide/commit/aa1897d870df3fb76193f7e4f33e135760732288))
- - Refactor ([`a717dba`](https://github.com/Byron/gitoxide/commit/a717dbaaafcbb0869bd189f1b625e5ff84a9ae72))
- - Refactor ([`8087ca3`](https://github.com/Byron/gitoxide/commit/8087ca3e856f2c5a9c409a94ff8b54fcf295c894))
- - Refactor ([`46583c1`](https://github.com/Byron/gitoxide/commit/46583c1fff415f742466b93c0821b21e7c9e7e1c))
- - Refactor ([`fdc8c79`](https://github.com/Byron/gitoxide/commit/fdc8c7975a67b332eff995ca8046cafdb3bbeae2))
- - [tree-diff] refactor into iterator based model ([`29b527a`](https://github.com/Byron/gitoxide/commit/29b527aaea101c9b4e885db1c6d3533ef2310c54))
- - Refactor ([`9ce9832`](https://github.com/Byron/gitoxide/commit/9ce98322bc578832495082e8a9c147d12542262b))
- - [tree-diff] A step closer to handling additions in a directory ([`a11f210`](https://github.com/Byron/gitoxide/commit/a11f210bec2c6c55bcf8cebe00e116e835306360))
- - [tree-diff] actually windows might have a point, let's see ([`0020a7c`](https://github.com/Byron/gitoxide/commit/0020a7cc368ffc5b62d6618f94a4cdec36c6d512))
- - [tree-diff] detect modifications ([`b87f2b4`](https://github.com/Byron/gitoxide/commit/b87f2b46783152964c24d6e7566a1787be60a932))
- - [tree-diff] See if this works on windows ([`95db1de`](https://github.com/Byron/gitoxide/commit/95db1de95a585ac1fa8a185b201300e86e5f34da))
- - [tree-diff] the first succeeding test - additions ([`619d4f0`](https://github.com/Byron/gitoxide/commit/619d4f05516ca0e54016b7ee8ab0433d6839ef7f))
- - Refactor ([`a4d5f99`](https://github.com/Byron/gitoxide/commit/a4d5f99c8dc99bf814790928a3bf9649cd99486b))
- - Refactor ([`11018e1`](https://github.com/Byron/gitoxide/commit/11018e1453ba6b130403f6d9f699881a93955c06))
- - [tree-diff] The first proper test with an API I like ([`ae6944e`](https://github.com/Byron/gitoxide/commit/ae6944eaf874a7d52f1f061e5d0d0a4d642c20b5))
- - Refactor ([`633cba7`](https://github.com/Byron/gitoxide/commit/633cba7c1ff1f63c32613bedf963d1bd89afaee1))
- - Refactor ([`3c10d06`](https://github.com/Byron/gitoxide/commit/3c10d0613ec00606a678c65e05ab1fda0ef742f7))
- - Delegate-based tree diff traversal for maximum flexibility and performance ([`cbacca0`](https://github.com/Byron/gitoxide/commit/cbacca0be8bc8cb968b26438fc2caf48a447c542))
- - Maybe avoid even more allocations? At the expense of usability. ([`230ef04`](https://github.com/Byron/gitoxide/commit/230ef0447a56e9acd28efc6b71c5406e1b43653c))
- - Probably a good idea to just use a graph for now to avoid a huge trap ([`6b43cdc`](https://github.com/Byron/gitoxide/commit/6b43cdca4749840fd179492bf9b7d7b9fb595814))
- - Sketch of how changes could actually be returned. ([`a48db50`](https://github.com/Byron/gitoxide/commit/a48db50049657f8299423c8eaacc1d44da0a5b34))
- - Refactor ([`03ee510`](https://github.com/Byron/gitoxide/commit/03ee510a5f9c24b6acddaec1d30ea3ad39174603))
- - Second sketch of 'fluid' diff API that hopefullly makes clear how it works ([`ef6d469`](https://github.com/Byron/gitoxide/commit/ef6d469dfe22b8cdc816960b1be717483e3cdf8f))
- - First sketch of diff API ([`fc3f2b7`](https://github.com/Byron/gitoxide/commit/fc3f2b7066538e31f8d4bb1053d70dcabd5fbab1))
- - Better ergonomics for accessing decoded objects ([`ae3eab6`](https://github.com/Byron/gitoxide/commit/ae3eab6d6e4b96e207372fa8cb82f5ac9833e5e4))
- - Make sure releases of 'git-diff' don't get too big ([`378dde7`](https://github.com/Byron/gitoxide/commit/378dde703978812c6ffa39b51a4a7edd19a903ba))
- - Frame for testing tree(&tree) diffing ([`28c78f5`](https://github.com/Byron/gitoxide/commit/28c78f558e625f1d61bfa455f43bf6701e71703b))
- - More explicit expectations towards entries in mutable Trees ([`d94f84c`](https://github.com/Byron/gitoxide/commit/d94f84ceac637d2b6495be01dfc8eeb2494922f2))
- - Add git-diff crate ([`42fdd8d`](https://github.com/Byron/gitoxide/commit/42fdd8d94b6fb65c1900cfef4f44dad619f7f09d))
-</details>
-
-## 0.26.0 (2023-01-09)
-
-A maintenance release without user-facing changes.
-
-## 0.25.0 (2022-12-30)
-
-A maintenance release without user-facing changes.
-
-## 0.24.0 (2022-12-19)
-
-A maintenance release without user-facing changes.
-
-## 0.23.0 (2022-11-21)
-
-### New Features (BREAKING)
-
- - <csr-id-3d8fa8fef9800b1576beab8a5bc39b821157a5ed/> upgrade edition to 2021 in most crates.
- MSRV for this is 1.56, and we are now at 1.60 so should be compatible.
- This isn't more than a patch release as it should break nobody
- who is adhering to the MSRV, but let's be careful and mark it
- breaking.
-
- Note that `gix-features` and `gix-pack` are still on edition 2018
- as they make use of a workaround to support (safe) mutable access
- to non-overlapping entries in a slice which doesn't work anymore
- in edition 2021.
-
-## 0.22.0 (2022-11-08)
-
-### Changed (BREAKING)
-
- - <csr-id-16b553367518153b8f5b0bb6b23d2fcefcaac801/> re-export the `imara-diff` crate as `gix_diff::blob::*`.
- It's flexible API needs nothing more and can be wrapped into more
- convenient APIs from higher-level crates.
-
- Note that despite being limited to `blob`, technically `imara-diff`
- can handle diffing any kind of sequence.
- - <csr-id-68a336502351ce16b804e7c099479bc974c3787c/> remove `text::with(…)` as it's not usable in practice.
- The only viable API for now, and not a bad one at that, is the one
- `imara-diff` provides.
-
-## 0.21.0 (2022-11-06)
-
-<csr-id-fed47d45b7e39958921a230b485b5b0384c8672f/>
-
-### Changed (BREAKING)
-
- - <csr-id-ee26ddfe645ca39024795f85bb8e1cab6b6f5863/> replace `similar` with `imara-diff`.
- The latter clearly has a more complex call signature, but that also
- makes it far more powerful which will pay off with better performance.
-
-### Other (BREAKING)
-
- - <csr-id-fed47d45b7e39958921a230b485b5b0384c8672f/> rename `lines` module to `text`.
- Thanks to `imara-diff`, diffs can easily abstract over different kinds
- of tokens, at the expense of a much more complex call signature.
-
-## 0.20.0 (2022-10-10)
-
-Maintenance release without user-facing changes.
-
-## 0.19.0 (2022-09-20)
-
-### New Features
-
- - <csr-id-e164856ab8d80c13b082a283b4c73b6fb31968f6/> forward line-diffing capabilities curtesy of the `similar` crate.
- This is a first and maybe the last step towards providing diffing
- functionality, and it seems like the right choice to keep this in
- similar and contribute there as needed. All algorithms are well
- described and thus shouldn't be git-specific per-se, and `similar`
- is the best the community has to offer.
-
-## 0.18.1 (2022-09-01)
-
-Maintenance release without user-facing changes.
-
-## 0.18.0 (2022-08-28)
-
-### Bug Fixes (BREAKING)
-
- - <csr-id-6d9533dd987241fe0ddf0e401512ca6bdf0d3ff0/> Don't degenerate errors when accessing objects
-
-## 0.17.2 (2022-08-24)
-
-<csr-id-f7f136dbe4f86e7dee1d54835c420ec07c96cd78/>
-<csr-id-533e887e80c5f7ede8392884562e1c5ba56fb9a8/>
-
-### Chore
-
- - <csr-id-f7f136dbe4f86e7dee1d54835c420ec07c96cd78/> uniformize deny attributes
- - <csr-id-533e887e80c5f7ede8392884562e1c5ba56fb9a8/> remove default link to cargo doc everywhere
-
-## 0.17.1 (2022-08-17)
-
-A maintenance release without user facing changes.
-
-## 0.17.0 (2022-07-22)
-
-This is a maintenance release with no functional changes.
-
-## 0.16.0 (2022-05-18)
-
-A maintenance release without user-facing changes.
-
-## 0.15.0 (2022-04-05)
-
-### Changed (BREAKING)
-
- - <csr-id-8c5ae77f06a64c57df9a9ad1190266896a223dbe/> Remove deprecated compound and linked object databases
- The dynamic/general store is the only maintained can-do-it-all
- DB now.
-
-## 0.14.0 (2022-04-03)
-
-A maintenance release primarily to adapt to dependent crates.
-
-## 0.13.0 (2022-01-23)
-
-<csr-id-ebc7f47708a63c3df4415ba0e702660d976dfb3e/>
-<csr-id-2290d006705ff47ad780b009fe58ee422b3285af/>
-
-### Changes (BREAKING)
-
- - remove pack-cache from `Find::try_find(…)`
- With the new architecture this can be an implementation detail without
- forcing it to be Sync.
- - move gix_pack::data::Object to gix_object::Data, massively alter gix_odb::Find trait
- This will break a lot, but has to happen to prepare these traits for the
- next generation of object databases.
-
-## 0.12.0 (2021-11-29)
-
-A maintenance release, triggered by putting too many adjustments into a single commit.
-
-## 0.11.1 (2021-11-16)
-
-A maintenance release triggered by changes to gix-pack and changelog rewrites.
-
-## v0.11.0 (2021-10-19)
-
-A maintenance release due to properly dealing with previously breaking changes in `gix-hash`.
-
-## v0.10.0 (2021-10-15)
-
-It looks like there were no functional changes despite the minor version bump.
-Please consider it a fluke that will be fixed with `cargo smart-release` automating
-version number generation.
-
-## v0.9.2 (2021-09-08)
-
-## v0.9.1 (2021-09-07)
-
-## v0.9.0 (2021-08-27)
-
-## v0.8.2 (2021-08-17)
-
-## v0.8.1 (2021-08-13)
-
-## v0.8.0 (2021-08-12)
-
-## v0.6.0 (2021-08-11)
-
-## v0.5.0 (2021-08-11)
-
-## v0.4.1 (2021-08-10)
-
-## v0.4.0 (2021-08-10)
-
-## v0.3.0 (2021-05-09)
-
-## v0.2.0 (2021-05-02)
-
-## v0.1.0 (2021-04-30)
-
-## v0.0.0 (2021-04-26)
-
diff --git a/vendor/gix-diff/Cargo.toml b/vendor/gix-diff/Cargo.toml
index 681db4e74..46dbf8d63 100644
--- a/vendor/gix-diff/Cargo.toml
+++ b/vendor/gix-diff/Cargo.toml
@@ -13,12 +13,11 @@
edition = "2021"
rust-version = "1.65"
name = "gix-diff"
-version = "0.37.0"
+version = "0.38.0"
authors = ["Sebastian Thiel <sebastian.thiel@icloud.com>"]
include = [
"src/**/*",
"LICENSE-*",
- "CHANGELOG.md",
]
autotests = false
description = "Calculate differences between various git objects"
@@ -28,14 +27,14 @@ repository = "https://github.com/Byron/gitoxide"
[package.metadata.docs.rs]
all-features = true
features = ["document-features"]
-rustdoc-args = [
- "--cfg",
- "docsrs",
-]
[lib]
doctest = false
+[dependencies.bstr]
+version = "1.5.0"
+default-features = false
+
[dependencies.document-features]
version = "0.2.0"
optional = true
@@ -46,11 +45,41 @@ features = ["js"]
optional = true
default-features = false
+[dependencies.gix-command]
+version = "^0.3.0"
+optional = true
+
+[dependencies.gix-filter]
+version = "^0.7.0"
+optional = true
+
+[dependencies.gix-fs]
+version = "^0.8.1"
+optional = true
+
[dependencies.gix-hash]
-version = "^0.13.1"
+version = "^0.13.2"
[dependencies.gix-object]
-version = "^0.38.0"
+version = "^0.39.0"
+
+[dependencies.gix-path]
+version = "^0.10.1"
+optional = true
+
+[dependencies.gix-tempfile]
+version = "11.0.0"
+optional = true
+
+[dependencies.gix-trace]
+version = "^0.1.4"
+optional = true
+
+[dependencies.gix-worktree]
+version = "^0.28.0"
+features = ["attributes"]
+optional = true
+default-features = false
[dependencies.imara-diff]
version = "0.1.3"
@@ -66,7 +95,16 @@ default-features = false
version = "1.0.32"
[features]
-blob = ["dep:imara-diff"]
+blob = [
+ "dep:imara-diff",
+ "dep:gix-filter",
+ "dep:gix-worktree",
+ "dep:gix-path",
+ "dep:gix-fs",
+ "dep:gix-command",
+ "dep:gix-tempfile",
+ "dep:gix-trace",
+]
default = ["blob"]
serde = [
"dep:serde",
diff --git a/vendor/gix-diff/LICENSE-MIT b/vendor/gix-diff/LICENSE-MIT
index b58e818f1..97c2fa7d8 100644
--- a/vendor/gix-diff/LICENSE-MIT
+++ b/vendor/gix-diff/LICENSE-MIT
@@ -1,5 +1,3 @@
-MIT License
-
Copyright (c) 2018-2021 Sebastian Thiel, and [contributors](https://github.com/byron/gitoxide/contributors).
Permission is hereby granted, free of charge, to any person obtaining a copy
diff --git a/vendor/gix-diff/src/blob.rs b/vendor/gix-diff/src/blob.rs
deleted file mode 100644
index 27c1a1317..000000000
--- a/vendor/gix-diff/src/blob.rs
+++ /dev/null
@@ -1,3 +0,0 @@
-//! For using text diffs, please have a look at the [`imara-diff` documentation](https://docs.rs/imara-diff),
-//! maintained by [Pascal Kuthe](https://github.com/pascalkuthe).
-pub use imara_diff::*;
diff --git a/vendor/gix-diff/src/blob/mod.rs b/vendor/gix-diff/src/blob/mod.rs
new file mode 100644
index 000000000..0c76c2d91
--- /dev/null
+++ b/vendor/gix-diff/src/blob/mod.rs
@@ -0,0 +1,133 @@
+//! For using text diffs, please have a look at the [`imara-diff` documentation](https://docs.rs/imara-diff),
+//! maintained by [Pascal Kuthe](https://github.com/pascalkuthe).
+use std::{collections::HashMap, path::PathBuf};
+
+use bstr::BString;
+pub use imara_diff::*;
+
+///
+pub mod pipeline;
+
+///
+pub mod platform;
+
+/// Information about the diff performed to detect similarity.
+#[derive(Debug, Default, Clone, Copy, PartialEq, PartialOrd)]
+pub struct DiffLineStats {
+ /// The amount of lines to remove from the source to get to the destination.
+ pub removals: u32,
+ /// The amount of lines to add to the source to get to the destination.
+ pub insertions: u32,
+ /// The amount of lines of the previous state, in the source.
+ pub before: u32,
+ /// The amount of lines of the new state, in the destination.
+ pub after: u32,
+ /// A range from 0 to 1.0, where 1.0 is a perfect match and 0.5 is a similarity of 50%.
+ /// Similarity is the ratio between all lines in the previous blob and the current blob,
+ /// calculated as `(old_lines_count - new_lines_count) as f32 / old_lines_count.max(new_lines_count) as f32`.
+ pub similarity: f32,
+}
+
+/// A way to classify a resource suitable for diffing.
+#[derive(Copy, Clone, Debug, Ord, PartialOrd, Eq, PartialEq, Hash)]
+pub enum ResourceKind {
+ /// The source of a rewrite, rename or copy operation, or generally the old version of a resource.
+ OldOrSource,
+ /// The destination of a rewrite, rename or copy operation, or generally the new version of a resource.
+ NewOrDestination,
+}
+
+/// A set of values to define how to diff something that is associated with it using `git-attributes`, relevant for regular files.
+///
+/// Some values are related to diffing, some are related to conversions.
+#[derive(Default, Debug, Clone, PartialEq, Eq)]
+pub struct Driver {
+ /// The name of the driver, as referred to by `[diff "name"]` in the git configuration.
+ pub name: BString,
+ /// The command to execute to perform the diff entirely like `<command> old-file old-hex old-mode new-file new-hex new-mode`.
+ ///
+ /// Please note that we don't make this call ourselves, but use it to determine that we should not run the our standard
+ /// built-in algorithm but bail instead as the output of such a program isn't standardized.
+ pub command: Option<BString>,
+ /// The per-driver algorithm to use.
+ pub algorithm: Option<Algorithm>,
+ /// The external filter program to call like `<binary_to_text_command> /path/to/blob` which outputs a textual version of the provided
+ /// binary file.
+ /// Note that it's invoked with a shell if arguments are given.
+ /// Further, if present, it will always be executed, whether `is_binary` is set or not.
+ pub binary_to_text_command: Option<BString>,
+ /// `Some(true)` if this driver deals with binary files, which means that a `binary_to_text_command` should be used to convert binary
+ /// into a textual representation.
+ /// Without such a command, anything that is considered binary is not diffed, but only the size of its data is made available.
+ /// If `Some(false)`, it won't be considered binary, and the its data will not be sampled for the null-byte either.
+ /// Leaving it to `None` means binary detection is automatic, and is based on the presence of the `0` byte in the first 8kB of the buffer.
+ pub is_binary: Option<bool>,
+}
+
+/// A conversion pipeline to take an object or path from what's stored in `git` to what can be diffed, while
+/// following the guidance of git-attributes at the respective path to learn if diffing should happen or if
+/// the content is considered binary.
+///
+/// There are two different conversion flows, where the target of the flow is a buffer with diffable content:
+// TODO: update this with information about possible directions.
+///
+/// * `worktree on disk` -> `text conversion`
+/// * `object` -> `worktree-filters` -> `text conversion`
+#[derive(Clone)]
+pub struct Pipeline {
+ /// A way to read data directly from the worktree.
+ pub roots: pipeline::WorktreeRoots,
+ /// A pipeline to convert objects from what's stored in `git` to its worktree version.
+ pub worktree_filter: gix_filter::Pipeline,
+ /// Options affecting the way we read files.
+ pub options: pipeline::Options,
+ /// Drivers to help customize the conversion behaviour depending on the location of items.
+ drivers: Vec<Driver>,
+ /// Pre-configured attributes to obtain additional diff-related information.
+ attrs: gix_filter::attributes::search::Outcome,
+ /// A buffer to manipulate paths
+ path: PathBuf,
+}
+
+/// A utility for performing a diff of two blobs, including flexible conversions, conversion-caching
+/// acquisition of diff information.
+/// Note that this instance will not call external filters as their output can't be known programmatically,
+/// but it allows to prepare their input if the caller wishes to perform this task.
+///
+/// Optimized for NxM lookups with built-in caching.
+#[derive(Clone)]
+pub struct Platform {
+ /// The old version of a diff-able blob, if set.
+ old: Option<platform::CacheKey>,
+ /// The new version of a diff-able blob, if set.
+ new: Option<platform::CacheKey>,
+
+ /// Options to alter how diffs should be performed.
+ pub options: platform::Options,
+ /// A way to convert objects into a diff-able format.
+ pub filter: Pipeline,
+ /// A way to access .gitattributes
+ pub attr_stack: gix_worktree::Stack,
+
+ /// The way we convert resources into diffable states.
+ filter_mode: pipeline::Mode,
+ /// A continuously growing cache keeping ready-for-diff blobs by their path in the worktree,
+ /// as that is what affects their final diff-able state.
+ ///
+ /// That way, expensive rewrite-checks with NxM matrix checks would be as fast as possible,
+ /// avoiding duplicate work.
+ diff_cache: HashMap<platform::CacheKey, platform::CacheValue>,
+}
+
+mod impls {
+ use crate::blob::ResourceKind;
+
+ impl std::fmt::Display for ResourceKind {
+ fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
+ f.write_str(match self {
+ ResourceKind::OldOrSource => "old",
+ ResourceKind::NewOrDestination => "new",
+ })
+ }
+ }
+}
diff --git a/vendor/gix-diff/src/blob/pipeline.rs b/vendor/gix-diff/src/blob/pipeline.rs
new file mode 100644
index 000000000..58dddd90b
--- /dev/null
+++ b/vendor/gix-diff/src/blob/pipeline.rs
@@ -0,0 +1,538 @@
+use std::{
+ io::{Read, Write},
+ path::{Path, PathBuf},
+ process::{Command, Stdio},
+};
+
+use bstr::{BStr, ByteSlice};
+use gix_filter::{
+ driver::apply::{Delay, MaybeDelayed},
+ pipeline::convert::{ToGitOutcome, ToWorktreeOutcome},
+};
+use gix_object::tree::EntryKind;
+
+use crate::blob::{Driver, Pipeline, ResourceKind};
+
+/// A way to access roots for different kinds of resources that are possibly located and accessible in a worktree.
+#[derive(Clone, Debug, Default)]
+pub struct WorktreeRoots {
+ /// A place where the source of a rewrite, rename or copy, or generally the previous version of resources, are located.
+ pub old_root: Option<PathBuf>,
+ /// A place where the destination of a rewrite, rename or copy, or generally the new version of resources, are located.
+ pub new_root: Option<PathBuf>,
+}
+
+impl WorktreeRoots {
+ /// Return the root path for the given `kind`
+ pub fn by_kind(&self, kind: ResourceKind) -> Option<&Path> {
+ match kind {
+ ResourceKind::OldOrSource => self.old_root.as_deref(),
+ ResourceKind::NewOrDestination => self.new_root.as_deref(),
+ }
+ }
+}
+
+/// Data as part of an [Outcome].
+#[derive(Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Debug)]
+pub enum Data {
+ /// The data to use for diffing was written into the buffer that was passed during the call to [`Pipeline::convert_to_diffable()`].
+ Buffer,
+ /// The size that the binary blob had at the given revision, without having applied filters, as it's either
+ /// considered binary or above the big-file threshold.
+ ///
+ /// In this state, the binary file cannot be diffed.
+ Binary {
+ /// The size of the object prior to performing any filtering or as it was found on disk.
+ ///
+ /// Note that technically, the size isn't always representative of the same 'state' of the
+ /// content, as once it can be the size of the blob in git, and once it's the size of file
+ /// in the worktree.
+ size: u64,
+ },
+}
+
+/// The outcome returned by [Pipeline::convert_to_diffable()](super::Pipeline::convert_to_diffable()).
+#[derive(Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Debug)]
+pub struct Outcome {
+ /// If available, an index into the `drivers` field to access more diff-related information of the driver for items
+ /// at the given path, as previously determined by git-attributes.
+ ///
+ /// Note that drivers are queried even if there is no object available.
+ pub driver_index: Option<usize>,
+ /// The data itself, suitable for diffing, and if the object or worktree item is present at all.
+ pub data: Option<Data>,
+}
+
+/// Options for use in a [`Pipeline`].
+#[derive(Default, Clone, Copy, PartialEq, Eq, Debug, Hash, Ord, PartialOrd)]
+pub struct Options {
+ /// The amount of bytes that an object has to reach before being treated as binary.
+ /// These objects will not be queried, nor will their data be processed in any way.
+ /// If `0`, no file is ever considered binary due to their size.
+ ///
+ /// Note that for files stored in `git`, what counts is their stored, decompressed size,
+ /// thus `git-lfs` files would typically not be considered binary unless one explicitly sets
+ /// them
+ pub large_file_threshold_bytes: u64,
+ /// Capabilities of the file system which affect how we read worktree files.
+ pub fs: gix_fs::Capabilities,
+}
+
+/// The specific way to convert a resource.
+#[derive(Default, Debug, Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Hash)]
+pub enum Mode {
+ /// Always prepare the version of the resource as it would be in the work-tree, and
+ /// apply binary-to-text filters if present.
+ ///
+ /// This is typically free for resources in the worktree, and will apply filters to resources in the
+ /// object database.
+ #[default]
+ ToWorktreeAndBinaryToText,
+ /// Prepare the version of the resource as it would be in the work-tree if
+ /// binary-to-text filters are present (and apply them), or use the version in `git` otherwise.
+ ToGitUnlessBinaryToTextIsPresent,
+ /// Always prepare resources as they are stored in `git`.
+ ///
+ /// This is usually fastest, even though resources in the worktree needed to be converted files.
+ ToGit,
+}
+
+impl Mode {
+ fn to_worktree(self) -> bool {
+ matches!(
+ self,
+ Mode::ToGitUnlessBinaryToTextIsPresent | Mode::ToWorktreeAndBinaryToText
+ )
+ }
+
+ fn to_git(self) -> bool {
+ matches!(self, Mode::ToGitUnlessBinaryToTextIsPresent | Mode::ToGit)
+ }
+}
+
+///
+pub mod convert_to_diffable {
+ use bstr::BString;
+ use gix_object::tree::EntryKind;
+
+ /// The error returned by [Pipeline::convert_to_diffable()](super::Pipeline::convert_to_diffable()).
+ #[derive(Debug, thiserror::Error)]
+ #[allow(missing_docs)]
+ pub enum Error {
+ #[error("Entry at '{rela_path}' must be regular file or symlink, but was {actual:?}")]
+ InvalidEntryKind { rela_path: BString, actual: EntryKind },
+ #[error("Entry at '{rela_path}' could not be read as symbolic link")]
+ ReadLink { rela_path: BString, source: std::io::Error },
+ #[error("Entry at '{rela_path}' could not be opened for reading or read from")]
+ OpenOrRead { rela_path: BString, source: std::io::Error },
+ #[error("Entry at '{rela_path}' could not be copied from a filter process to a memory buffer")]
+ StreamCopy { rela_path: BString, source: std::io::Error },
+ #[error("Failed to run '{cmd}' for binary-to-text conversion of entry at {rela_path}")]
+ RunTextConvFilter {
+ rela_path: BString,
+ cmd: String,
+ source: std::io::Error,
+ },
+ #[error("Tempfile for binary-to-text conversion for entry at {rela_path} could not be created")]
+ CreateTempfile { rela_path: BString, source: std::io::Error },
+ #[error("Binary-to-text conversion '{cmd}' for entry at {rela_path} failed with: {stderr}")]
+ TextConvFilterFailed {
+ rela_path: BString,
+ cmd: String,
+ stderr: BString,
+ },
+ #[error(transparent)]
+ FindObject(#[from] gix_object::find::existing_object::Error),
+ #[error(transparent)]
+ ConvertToWorktree(#[from] gix_filter::pipeline::convert::to_worktree::Error),
+ #[error(transparent)]
+ ConvertToGit(#[from] gix_filter::pipeline::convert::to_git::Error),
+ }
+}
+
+/// Lifecycle
+impl Pipeline {
+ /// Create a new instance of a pipeline which produces blobs suitable for diffing. `roots` allow to read worktree files directly, otherwise
+ /// `worktree_filter` is used to transform object database data directly. `drivers` further configure individual paths.
+ /// `options` are used to further configure the way we act..
+ pub fn new(
+ roots: WorktreeRoots,
+ worktree_filter: gix_filter::Pipeline,
+ mut drivers: Vec<super::Driver>,
+ options: Options,
+ ) -> Self {
+ drivers.sort_by(|a, b| a.name.cmp(&b.name));
+ Pipeline {
+ roots,
+ worktree_filter,
+ drivers,
+ options,
+ attrs: {
+ let mut out = gix_filter::attributes::search::Outcome::default();
+ out.initialize_with_selection(&Default::default(), Some("diff"));
+ out
+ },
+ path: Default::default(),
+ }
+ }
+}
+
+/// Access
+impl Pipeline {
+ /// Return all drivers that this instance was initialized with.
+ pub fn drivers(&self) -> &[super::Driver] {
+ &self.drivers
+ }
+}
+
+/// Conversion
+impl Pipeline {
+ /// Convert the object at `id`, `mode`, `rela_path` and `kind`, providing access to `attributes` and `objects`.
+ /// The resulting diff-able data is written into `out`, assuming it's not too large. The returned [`Outcome`]
+ /// contains information on how to use `out`, or if it's filled at all.
+ ///
+ /// `attributes` must be returning the attributes at `rela_path`, and `objects` must be usable if `kind` is
+ /// a resource in the object database, i.e. has no worktree root available.
+ ///
+ /// If `id` [is null](gix_hash::ObjectId::is_null()) or the file in question doesn't exist in the worktree in case
+ /// [a root](WorktreeRoots) is present, then `out` will be left cleared and [Outcome::data] will be `None`.
+ ///
+ /// Note that `mode` is trusted, and we will not re-validate that the entry in the worktree actually is of that mode.
+ ///
+ /// Use `convert` to control what kind of the resource will be produced.
+ ///
+ /// ### About Tempfiles
+ ///
+ /// When querying from the object database and a binary and a [binary-to-text](Driver::binary_to_text_command) is set,
+ /// a temporary file will be created to serve as input for the converter program, containing the worktree-data that
+ /// exactly as it would be present in the worktree if checked out.
+ ///
+ /// As these files are ultimately named tempfiles, they will be leaked unless the [gix_tempfile] is configured with
+ /// a signal handler. If they leak, they would remain in the system's `$TMP` directory.
+ #[allow(clippy::too_many_arguments)]
+ pub fn convert_to_diffable(
+ &mut self,
+ id: &gix_hash::oid,
+ mode: EntryKind,
+ rela_path: &BStr,
+ kind: ResourceKind,
+ attributes: &mut dyn FnMut(&BStr, &mut gix_filter::attributes::search::Outcome),
+ objects: &dyn gix_object::FindObjectOrHeader,
+ convert: Mode,
+ out: &mut Vec<u8>,
+ ) -> Result<Outcome, convert_to_diffable::Error> {
+ let is_symlink = match mode {
+ EntryKind::Link if self.options.fs.symlink => true,
+ EntryKind::Blob | EntryKind::BlobExecutable => false,
+ _ => {
+ return Err(convert_to_diffable::Error::InvalidEntryKind {
+ rela_path: rela_path.to_owned(),
+ actual: mode,
+ })
+ }
+ };
+
+ out.clear();
+ attributes(rela_path, &mut self.attrs);
+ let attr = self.attrs.iter_selected().next().expect("pre-initialized with 'diff'");
+ let driver_index = attr
+ .assignment
+ .state
+ .as_bstr()
+ .and_then(|name| self.drivers.binary_search_by(|d| d.name.as_bstr().cmp(name)).ok());
+ let driver = driver_index.map(|idx| &self.drivers[idx]);
+ let mut is_binary = if let Some(driver) = driver {
+ driver
+ .is_binary
+ .map(|is_binary| is_binary && driver.binary_to_text_command.is_none())
+ } else {
+ attr.assignment.state.is_unset().then_some(true)
+ };
+ match self.roots.by_kind(kind) {
+ Some(root) => {
+ self.path.clear();
+ self.path.push(root);
+ self.path.push(gix_path::from_bstr(rela_path));
+ let data = if is_symlink {
+ let target = none_if_missing(std::fs::read_link(&self.path)).map_err(|err| {
+ convert_to_diffable::Error::ReadLink {
+ rela_path: rela_path.to_owned(),
+ source: err,
+ }
+ })?;
+ target.map(|target| {
+ out.extend_from_slice(gix_path::into_bstr(target).as_ref());
+ Data::Buffer
+ })
+ } else {
+ let need_size_only = is_binary == Some(true);
+ let size_in_bytes = (need_size_only
+ || (is_binary != Some(false) && self.options.large_file_threshold_bytes > 0))
+ .then(|| {
+ none_if_missing(self.path.metadata().map(|md| md.len())).map_err(|err| {
+ convert_to_diffable::Error::OpenOrRead {
+ rela_path: rela_path.to_owned(),
+ source: err,
+ }
+ })
+ })
+ .transpose()?;
+ match size_in_bytes {
+ Some(None) => None, // missing as identified by the size check
+ Some(Some(size)) if size > self.options.large_file_threshold_bytes || need_size_only => {
+ Some(Data::Binary { size })
+ }
+ _ => {
+ match driver
+ .filter(|_| convert.to_worktree())
+ .and_then(|d| d.prepare_binary_to_text_cmd(&self.path))
+ {
+ Some(cmd) => {
+ // Avoid letting the driver program fail if it doesn't exist.
+ if self.options.large_file_threshold_bytes == 0
+ && none_if_missing(std::fs::symlink_metadata(&self.path))
+ .map_err(|err| convert_to_diffable::Error::OpenOrRead {
+ rela_path: rela_path.to_owned(),
+ source: err,
+ })?
+ .is_none()
+ {
+ None
+ } else {
+ run_cmd(rela_path, cmd, out)?;
+ Some(Data::Buffer)
+ }
+ }
+ None => {
+ let file = none_if_missing(std::fs::File::open(&self.path)).map_err(|err| {
+ convert_to_diffable::Error::OpenOrRead {
+ rela_path: rela_path.to_owned(),
+ source: err,
+ }
+ })?;
+
+ match file {
+ Some(mut file) => {
+ if convert.to_git() {
+ let res = self.worktree_filter.convert_to_git(
+ file,
+ gix_path::from_bstr(rela_path).as_ref(),
+ attributes,
+ &mut |buf| objects.try_find(id, buf).map(|obj| obj.map(|_| ())),
+ )?;
+
+ match res {
+ ToGitOutcome::Unchanged(mut file) => {
+ file.read_to_end(out).map_err(|err| {
+ convert_to_diffable::Error::OpenOrRead {
+ rela_path: rela_path.to_owned(),
+ source: err,
+ }
+ })?;
+ }
+ ToGitOutcome::Process(mut stream) => {
+ stream.read_to_end(out).map_err(|err| {
+ convert_to_diffable::Error::OpenOrRead {
+ rela_path: rela_path.to_owned(),
+ source: err,
+ }
+ })?;
+ }
+ ToGitOutcome::Buffer(buf) => {
+ out.resize(buf.len(), 0);
+ out.copy_from_slice(buf);
+ }
+ }
+ } else {
+ file.read_to_end(out).map_err(|err| {
+ convert_to_diffable::Error::OpenOrRead {
+ rela_path: rela_path.to_owned(),
+ source: err,
+ }
+ })?;
+ }
+
+ Some(if is_binary.unwrap_or_else(|| is_binary_buf(out)) {
+ let size = out.len() as u64;
+ out.clear();
+ Data::Binary { size }
+ } else {
+ Data::Buffer
+ })
+ }
+ None => None,
+ }
+ }
+ }
+ }
+ }
+ };
+ Ok(Outcome { driver_index, data })
+ }
+ None => {
+ let data = if id.is_null() {
+ None
+ } else {
+ let header = objects
+ .try_header(id)
+ .map_err(gix_object::find::existing_object::Error::Find)?
+ .ok_or_else(|| gix_object::find::existing_object::Error::NotFound { oid: id.to_owned() })?;
+ if is_binary.is_none()
+ && self.options.large_file_threshold_bytes > 0
+ && header.size > self.options.large_file_threshold_bytes
+ {
+ is_binary = Some(true);
+ };
+ let data = if is_binary == Some(true) {
+ Data::Binary { size: header.size }
+ } else {
+ objects
+ .try_find(id, out)
+ .map_err(gix_object::find::existing_object::Error::Find)?
+ .ok_or_else(|| gix_object::find::existing_object::Error::NotFound { oid: id.to_owned() })?;
+ if matches!(mode, EntryKind::Blob | EntryKind::BlobExecutable)
+ && convert == Mode::ToWorktreeAndBinaryToText
+ || (convert == Mode::ToGitUnlessBinaryToTextIsPresent
+ && driver.map_or(false, |d| d.binary_to_text_command.is_some()))
+ {
+ let res =
+ self.worktree_filter
+ .convert_to_worktree(out, rela_path, attributes, Delay::Forbid)?;
+
+ let cmd_and_file = driver
+ .and_then(|d| {
+ d.binary_to_text_command.is_some().then(|| {
+ gix_tempfile::new(
+ std::env::temp_dir(),
+ gix_tempfile::ContainingDirectory::Exists,
+ gix_tempfile::AutoRemove::Tempfile,
+ )
+ .and_then(|mut tmp_file| {
+ self.path.clear();
+ tmp_file.with_mut(|tmp| self.path.push(tmp.path()))?;
+ Ok(tmp_file)
+ })
+ .map(|tmp_file| {
+ (
+ d.prepare_binary_to_text_cmd(&self.path)
+ .expect("always get cmd if command is set"),
+ tmp_file,
+ )
+ })
+ })
+ })
+ .transpose()
+ .map_err(|err| convert_to_diffable::Error::CreateTempfile {
+ source: err,
+ rela_path: rela_path.to_owned(),
+ })?;
+ match cmd_and_file {
+ Some((cmd, mut tmp_file)) => {
+ match res {
+ ToWorktreeOutcome::Unchanged(buf) | ToWorktreeOutcome::Buffer(buf) => {
+ tmp_file.write_all(buf)
+ }
+ ToWorktreeOutcome::Process(MaybeDelayed::Immediate(mut stream)) => {
+ std::io::copy(&mut stream, &mut tmp_file).map(|_| ())
+ }
+ ToWorktreeOutcome::Process(MaybeDelayed::Delayed(_)) => {
+ unreachable!("we prohibit this")
+ }
+ }
+ .map_err(|err| {
+ convert_to_diffable::Error::CreateTempfile {
+ source: err,
+ rela_path: rela_path.to_owned(),
+ }
+ })?;
+ out.clear();
+ run_cmd(rela_path, cmd, out)?;
+ }
+ None => {
+ match res {
+ ToWorktreeOutcome::Unchanged(_) => {}
+ ToWorktreeOutcome::Buffer(src) => {
+ out.resize(src.len(), 0);
+ out.copy_from_slice(src);
+ }
+ ToWorktreeOutcome::Process(MaybeDelayed::Immediate(mut stream)) => {
+ std::io::copy(&mut stream, out).map_err(|err| {
+ convert_to_diffable::Error::StreamCopy {
+ rela_path: rela_path.to_owned(),
+ source: err,
+ }
+ })?;
+ }
+ ToWorktreeOutcome::Process(MaybeDelayed::Delayed(_)) => {
+ unreachable!("we prohibit this")
+ }
+ };
+ }
+ }
+ }
+
+ if driver.map_or(true, |d| d.binary_to_text_command.is_none())
+ && is_binary.unwrap_or_else(|| is_binary_buf(out))
+ {
+ let size = out.len() as u64;
+ out.clear();
+ Data::Binary { size }
+ } else {
+ Data::Buffer
+ }
+ };
+ Some(data)
+ };
+ Ok(Outcome { driver_index, data })
+ }
+ }
+ }
+}
+
+fn is_binary_buf(buf: &[u8]) -> bool {
+ let buf = &buf[..buf.len().min(8000)];
+ buf.contains(&0)
+}
+
+fn none_if_missing<T>(res: std::io::Result<T>) -> std::io::Result<Option<T>> {
+ match res {
+ Ok(data) => Ok(Some(data)),
+ Err(err) if err.kind() == std::io::ErrorKind::NotFound => Ok(None),
+ Err(err) => Err(err),
+ }
+}
+
+fn run_cmd(rela_path: &BStr, mut cmd: Command, out: &mut Vec<u8>) -> Result<(), convert_to_diffable::Error> {
+ gix_trace::debug!(cmd = ?cmd, "Running binary-to-text command");
+ let mut res = cmd
+ .output()
+ .map_err(|err| convert_to_diffable::Error::RunTextConvFilter {
+ rela_path: rela_path.to_owned(),
+ cmd: format!("{cmd:?}"),
+ source: err,
+ })?;
+ if !res.status.success() {
+ return Err(convert_to_diffable::Error::TextConvFilterFailed {
+ rela_path: rela_path.to_owned(),
+ cmd: format!("{cmd:?}"),
+ stderr: res.stderr.into(),
+ });
+ }
+ out.append(&mut res.stdout);
+ Ok(())
+}
+
+impl Driver {
+ /// Produce an invocable command pre-configured to produce the filtered output on stdout after reading `path`.
+ pub fn prepare_binary_to_text_cmd(&self, path: &Path) -> Option<std::process::Command> {
+ let command: &BStr = self.binary_to_text_command.as_ref()?.as_ref();
+ let cmd = gix_command::prepare(gix_path::from_bstr(command).into_owned())
+ .with_shell()
+ .stdin(Stdio::null())
+ .stdout(Stdio::piped())
+ .stderr(Stdio::piped())
+ .arg(path)
+ .into();
+ Some(cmd)
+ }
+}
diff --git a/vendor/gix-diff/src/blob/platform.rs b/vendor/gix-diff/src/blob/platform.rs
new file mode 100644
index 000000000..fb37b735c
--- /dev/null
+++ b/vendor/gix-diff/src/blob/platform.rs
@@ -0,0 +1,619 @@
+use std::{io::Write, process::Stdio};
+
+use bstr::{BStr, BString, ByteSlice};
+
+use super::Algorithm;
+use crate::blob::{pipeline, Pipeline, Platform, ResourceKind};
+
+/// A key to uniquely identify either a location in the worktree, or in the object database.
+#[derive(Clone)]
+pub(crate) struct CacheKey {
+ id: gix_hash::ObjectId,
+ location: BString,
+ /// If `true`, this is an `id` based key, otherwise it's location based.
+ use_id: bool,
+ /// Only relevant when `id` is not null, to further differentiate content and allow us to
+ /// keep track of both links and blobs with the same content (rare, but possible).
+ is_link: bool,
+}
+
+/// A stored value representing a diffable resource.
+#[derive(Clone, Eq, PartialEq, Ord, PartialOrd, Debug)]
+pub(crate) struct CacheValue {
+ /// The outcome of converting a resource into a diffable format using [Pipeline::convert_to_diffable()].
+ conversion: pipeline::Outcome,
+ /// The kind of the resource we are looking at. Only possible values are `Blob`, `BlobExecutable` and `Link`.
+ mode: gix_object::tree::EntryKind,
+ /// A possibly empty buffer, depending on `conversion.data` which may indicate the data is considered binary.
+ buffer: Vec<u8>,
+}
+
+impl std::hash::Hash for CacheKey {
+ fn hash<H: std::hash::Hasher>(&self, state: &mut H) {
+ if self.use_id {
+ self.id.hash(state);
+ self.is_link.hash(state)
+ } else {
+ self.location.hash(state)
+ }
+ }
+}
+
+impl PartialEq for CacheKey {
+ fn eq(&self, other: &Self) -> bool {
+ match (self.use_id, other.use_id) {
+ (false, false) => self.location.eq(&other.location),
+ (true, true) => self.id.eq(&other.id) && self.is_link.eq(&other.is_link),
+ _ => false,
+ }
+ }
+}
+
+impl Eq for CacheKey {}
+
+impl Default for CacheKey {
+ fn default() -> Self {
+ CacheKey {
+ id: gix_hash::Kind::Sha1.null(),
+ use_id: false,
+ is_link: false,
+ location: BString::default(),
+ }
+ }
+}
+
+impl CacheKey {
+ fn set_location(&mut self, rela_path: &BStr) {
+ self.location.clear();
+ self.location.extend_from_slice(rela_path);
+ }
+}
+
+/// A resource ready to be diffed in one way or another.
+#[derive(Debug, Copy, Clone, Ord, PartialOrd, Eq, PartialEq, Hash)]
+pub struct Resource<'a> {
+ /// If available, an index into the `drivers` field to access more diff-related information of the driver for items
+ /// at the given path, as previously determined by git-attributes.
+ ///
+ /// Note that drivers are queried even if there is no object available.
+ pub driver_index: Option<usize>,
+ /// The data itself, suitable for diffing, and if the object or worktree item is present at all.
+ pub data: resource::Data<'a>,
+ /// The kind of the resource we are looking at. Only possible values are `Blob`, `BlobExecutable` and `Link`.
+ pub mode: gix_object::tree::EntryKind,
+ /// The location of the resource, relative to the working tree.
+ pub rela_path: &'a BStr,
+ /// The id of the content as it would be stored in `git`, or `null` if the content doesn't exist anymore at
+ /// `rela_path` or if it was never computed. This can happen with content read from the worktree, which has to
+ /// go through a filter to be converted back to what `git` would store.
+ pub id: &'a gix_hash::oid,
+}
+
+///
+pub mod resource {
+ use crate::blob::{
+ pipeline,
+ platform::{CacheKey, CacheValue, Resource},
+ };
+
+ impl<'a> Resource<'a> {
+ pub(crate) fn new(key: &'a CacheKey, value: &'a CacheValue) -> Self {
+ Resource {
+ driver_index: value.conversion.driver_index,
+ data: value.conversion.data.map_or(Data::Missing, |data| match data {
+ pipeline::Data::Buffer => Data::Buffer(&value.buffer),
+ pipeline::Data::Binary { size } => Data::Binary { size },
+ }),
+ mode: value.mode,
+ rela_path: key.location.as_ref(),
+ id: &key.id,
+ }
+ }
+
+ /// Produce an iterator over lines, separated by LF or CRLF, suitable to create tokens using
+ /// [`imara_diff::intern::InternedInput`].
+ pub fn intern_source(&self) -> imara_diff::sources::ByteLines<'a, true> {
+ crate::blob::sources::byte_lines_with_terminator(self.data.as_slice().unwrap_or_default())
+ }
+ }
+
+ /// The data of a diffable resource, as it could be determined and computed previously.
+ #[derive(Debug, Copy, Clone, Ord, PartialOrd, Eq, PartialEq, Hash)]
+ pub enum Data<'a> {
+ /// The object is missing, either because it didn't exist in the working tree or because its `id` was null.
+ Missing,
+ /// The textual data as processed to be in a diffable state.
+ Buffer(&'a [u8]),
+ /// The size that the binary blob had at the given revision, without having applied filters, as it's either
+ /// considered binary or above the big-file threshold.
+ ///
+ /// In this state, the binary file cannot be diffed.
+ Binary {
+ /// The size of the object prior to performing any filtering or as it was found on disk.
+ ///
+ /// Note that technically, the size isn't always representative of the same 'state' of the
+ /// content, as once it can be the size of the blob in git, and once it's the size of file
+ /// in the worktree.
+ size: u64,
+ },
+ }
+
+ impl<'a> Data<'a> {
+ /// Return ourselves as slice of bytes if this instance stores data.
+ pub fn as_slice(&self) -> Option<&'a [u8]> {
+ match self {
+ Data::Buffer(d) => Some(d),
+ Data::Binary { .. } | Data::Missing => None,
+ }
+ }
+ }
+}
+
+///
+pub mod set_resource {
+ use bstr::BString;
+
+ use crate::blob::{pipeline, ResourceKind};
+
+ /// The error returned by [Platform::set_resource](super::Platform::set_resource).
+ #[derive(Debug, thiserror::Error)]
+ #[allow(missing_docs)]
+ pub enum Error {
+ #[error("Can only diff blobs and links, not {mode:?}")]
+ InvalidMode { mode: gix_object::tree::EntryKind },
+ #[error("Failed to read {kind} worktree data from '{rela_path}'")]
+ Io {
+ rela_path: BString,
+ kind: ResourceKind,
+ source: std::io::Error,
+ },
+ #[error("Failed to obtain attributes for {kind} resource at '{rela_path}'")]
+ Attributes {
+ rela_path: BString,
+ kind: ResourceKind,
+ source: std::io::Error,
+ },
+ #[error(transparent)]
+ ConvertToDiffable(#[from] pipeline::convert_to_diffable::Error),
+ }
+}
+
+///
+pub mod prepare_diff {
+ use bstr::BStr;
+
+ use crate::blob::platform::Resource;
+
+ /// The kind of operation that was performed during the [`diff`](super::Platform::prepare_diff()) operation.
+ #[derive(Debug, Copy, Clone, Eq, PartialEq)]
+ pub enum Operation<'a> {
+ /// The [internal diff algorithm](imara_diff::diff) should be called with the provided arguments.
+ /// This only happens if none of the resources are binary, and if there is no external diff program configured via git-attributes
+ /// *or* [Options::skip_internal_diff_if_external_is_configured](super::Options::skip_internal_diff_if_external_is_configured)
+ /// is `false`.
+ ///
+ /// Use [`Outcome::interned_input()`] to easily obtain an interner for use with [`imara_diff::diff()`], or maintain one yourself
+ /// for greater re-use.
+ InternalDiff {
+ /// The algorithm we determined should be used, which is one of (in order, first set one wins):
+ ///
+ /// * the driver's override
+ /// * the platforms own configuration (typically from git-config)
+ /// * the default algorithm
+ algorithm: imara_diff::Algorithm,
+ },
+ /// Run the external diff program according as configured in the `source`-resources driver.
+ /// This only happens if [Options::skip_internal_diff_if_external_is_configured](super::Options::skip_internal_diff_if_external_is_configured)
+ /// was `true`, preventing the usage of the internal diff implementation.
+ ExternalCommand {
+ /// The command as extracted from [Driver::command](super::super::Driver::command).
+ /// Use it in [`Platform::prepare_diff_command`](super::Platform::prepare_diff_command()) to easily prepare a compatible invocation.
+ command: &'a BStr,
+ },
+ /// One of the involved resources, [`old`](Outcome::old) or [`new`](Outcome::new), were binary and thus no diff
+ /// cannot be performed.
+ SourceOrDestinationIsBinary,
+ }
+
+ /// The outcome of a [`prepare_diff`](super::Platform::prepare_diff()) operation.
+ #[derive(Debug, Copy, Clone, Eq, PartialEq)]
+ pub struct Outcome<'a> {
+ /// The kind of diff that was actually performed. This may include skipping the internal diff as well.
+ pub operation: Operation<'a>,
+ /// The old or source of the diff operation.
+ pub old: Resource<'a>,
+ /// The new or destination of the diff operation.
+ pub new: Resource<'a>,
+ }
+
+ impl<'a> Outcome<'a> {
+ /// Produce an instance of an interner which `git` would use to perform diffs.
+ pub fn interned_input(&self) -> imara_diff::intern::InternedInput<&'a [u8]> {
+ crate::blob::intern::InternedInput::new(self.old.intern_source(), self.new.intern_source())
+ }
+ }
+
+ /// The error returned by [Platform::prepare_diff()](super::Platform::prepare_diff()).
+ #[derive(Debug, thiserror::Error)]
+ #[allow(missing_docs)]
+ pub enum Error {
+ #[error("Either the source or the destination of the diff operation were not set")]
+ SourceOrDestinationUnset,
+ #[error("Tried to diff resources that are both considered removed")]
+ SourceAndDestinationRemoved,
+ }
+}
+
+///
+pub mod prepare_diff_command {
+ use std::ops::{Deref, DerefMut};
+
+ use bstr::BString;
+
+ /// The error returned by [Platform::prepare_diff_command()](super::Platform::prepare_diff_command()).
+ #[derive(Debug, thiserror::Error)]
+ #[allow(missing_docs)]
+ pub enum Error {
+ #[error("Either the source or the destination of the diff operation were not set")]
+ SourceOrDestinationUnset,
+ #[error("Binary resources can't be diffed with an external command (as we don't have the data anymore)")]
+ SourceOrDestinationBinary,
+ #[error(
+ "Tempfile to store content of '{rela_path}' for passing to external diff command could not be created"
+ )]
+ CreateTempfile { rela_path: BString, source: std::io::Error },
+ #[error("Could not write content of '{rela_path}' to tempfile for passing to external diff command")]
+ WriteTempfile { rela_path: BString, source: std::io::Error },
+ }
+
+ /// The outcome of a [`prepare_diff_command`](super::Platform::prepare_diff_command()) operation.
+ ///
+ /// This type acts like [`std::process::Command`], ready to run, with `stdin`, `stdout` and `stderr` set to *inherit*
+ /// all handles as this is expected to be for visual inspection.
+ pub struct Command {
+ pub(crate) cmd: std::process::Command,
+ /// Possibly a tempfile to be removed after the run, or `None` if there is no old version.
+ pub(crate) old: Option<gix_tempfile::Handle<gix_tempfile::handle::Closed>>,
+ /// Possibly a tempfile to be removed after the run, or `None` if there is no new version.
+ pub(crate) new: Option<gix_tempfile::Handle<gix_tempfile::handle::Closed>>,
+ }
+
+ impl Deref for Command {
+ type Target = std::process::Command;
+
+ fn deref(&self) -> &Self::Target {
+ &self.cmd
+ }
+ }
+
+ impl DerefMut for Command {
+ fn deref_mut(&mut self) -> &mut Self::Target {
+ &mut self.cmd
+ }
+ }
+}
+
+/// Options for use in [Platform::new()].
+#[derive(Default, Copy, Clone)]
+pub struct Options {
+ /// The algorithm to use when diffing.
+ /// If unset, it uses the [default algorithm](Algorithm::default()).
+ pub algorithm: Option<Algorithm>,
+ /// If `true`, default `false`, then an external `diff` configured using gitattributes and drivers,
+ /// will cause the built-in diff [to be skipped](prepare_diff::Operation::ExternalCommand).
+ /// Otherwise, the internal diff is called despite the configured external diff, which is
+ /// typically what callers expect by default.
+ pub skip_internal_diff_if_external_is_configured: bool,
+}
+
+/// Lifecycle
+impl Platform {
+ /// Create a new instance with `options`, and a way to `filter` data from the object database to data that is diff-able.
+ /// `filter_mode` decides how to do that specifically.
+ /// Use `attr_stack` to access attributes pertaining worktree filters and diff settings.
+ pub fn new(
+ options: Options,
+ filter: Pipeline,
+ filter_mode: pipeline::Mode,
+ attr_stack: gix_worktree::Stack,
+ ) -> Self {
+ Platform {
+ old: None,
+ new: None,
+ diff_cache: Default::default(),
+ options,
+ filter,
+ filter_mode,
+ attr_stack,
+ }
+ }
+}
+
+/// Conversions
+impl Platform {
+ /// Store enough information about a resource to eventually diff it, where…
+ ///
+ /// * `id` is the hash of the resource. If it [is null](gix_hash::ObjectId::is_null()), it should either
+ /// be a resource in the worktree, or it's considered a non-existing, deleted object.
+ /// If an `id` is known, as the hash of the object as (would) be stored in `git`, then it should be provided
+ /// for completeness.
+ /// * `mode` is the kind of object (only blobs and links are allowed)
+ /// * `rela_path` is the relative path as seen from the (work)tree root.
+ /// * `kind` identifies the side of the diff this resource will be used for.
+ /// A diff needs both `OldOrSource` *and* `NewOrDestination`.
+ /// * `objects` provides access to the object database in case the resource can't be read from a worktree.
+ ///
+ /// Note that it's assumed that either `id + mode (` or `rela_path` can serve as unique identifier for the resource,
+ /// depending on whether or not a [worktree root](pipeline::WorktreeRoots) is set for the resource of `kind`,
+ /// with resources with worktree roots using the `rela_path` as unique identifier.
+ ///
+ /// ### Important
+ ///
+ /// If an error occours, the previous resource of `kind` will be cleared, preventing further diffs
+ /// unless another attempt succeeds.
+ pub fn set_resource(
+ &mut self,
+ id: gix_hash::ObjectId,
+ mode: gix_object::tree::EntryKind,
+ rela_path: &BStr,
+ kind: ResourceKind,
+ objects: &impl gix_object::FindObjectOrHeader, // TODO: make this `dyn` once https://github.com/rust-lang/rust/issues/65991 is stable, then also make tracker.rs `objects` dyn
+ ) -> Result<(), set_resource::Error> {
+ let res = self.set_resource_inner(id, mode, rela_path, kind, objects);
+ if res.is_err() {
+ *match kind {
+ ResourceKind::OldOrSource => &mut self.old,
+ ResourceKind::NewOrDestination => &mut self.new,
+ } = None;
+ }
+ res
+ }
+
+ /// Given `diff_command` and `context`, typically obtained from git-configuration, and the currently set diff-resources,
+ /// prepare the invocation and temporary files needed to launch it according to protocol.
+ /// `count` / `total` are used for progress indication passed as environment variables `GIT_DIFF_PATH_(COUNTER|TOTAL)`
+ /// respectively (0-based), so the first path has `count=0` and `total=1` (assuming there is only one path).
+ /// Returns `None` if at least one resource is unset, see [`set_resource()`](Self::set_resource()).
+ ///
+ /// Please note that this is an expensive operation this will always create up to two temporary files to hold the data
+ /// for the old and new resources.
+ ///
+ /// ### Deviation
+ ///
+ /// If one of the resources is binary, the operation reports an error as such resources don't make their data available
+ /// which is required for the external diff to run.
+ pub fn prepare_diff_command(
+ &self,
+ diff_command: BString,
+ context: gix_command::Context,
+ count: usize,
+ total: usize,
+ ) -> Result<prepare_diff_command::Command, prepare_diff_command::Error> {
+ fn add_resource(
+ cmd: &mut std::process::Command,
+ res: Resource<'_>,
+ ) -> Result<Option<gix_tempfile::Handle<gix_tempfile::handle::Closed>>, prepare_diff_command::Error> {
+ let tmpfile = match res.data {
+ resource::Data::Missing => {
+ cmd.args(["/dev/null", ".", "."]);
+ None
+ }
+ resource::Data::Buffer(buf) => {
+ let mut tmp = gix_tempfile::new(
+ std::env::temp_dir(),
+ gix_tempfile::ContainingDirectory::Exists,
+ gix_tempfile::AutoRemove::Tempfile,
+ )
+ .map_err(|err| prepare_diff_command::Error::CreateTempfile {
+ rela_path: res.rela_path.to_owned(),
+ source: err,
+ })?;
+ tmp.write_all(buf)
+ .map_err(|err| prepare_diff_command::Error::WriteTempfile {
+ rela_path: res.rela_path.to_owned(),
+ source: err,
+ })?;
+ tmp.with_mut(|f| {
+ cmd.arg(f.path());
+ })
+ .map_err(|err| prepare_diff_command::Error::WriteTempfile {
+ rela_path: res.rela_path.to_owned(),
+ source: err,
+ })?;
+ cmd.arg(res.id.to_string()).arg(res.mode.as_octal_str().to_string());
+ let tmp = tmp.close().map_err(|err| prepare_diff_command::Error::WriteTempfile {
+ rela_path: res.rela_path.to_owned(),
+ source: err,
+ })?;
+ Some(tmp)
+ }
+ resource::Data::Binary { .. } => return Err(prepare_diff_command::Error::SourceOrDestinationBinary),
+ };
+ Ok(tmpfile)
+ }
+
+ let (old, new) = self
+ .resources()
+ .ok_or(prepare_diff_command::Error::SourceOrDestinationUnset)?;
+ let mut cmd: std::process::Command = gix_command::prepare(gix_path::from_bstring(diff_command))
+ .with_context(context)
+ .env("GIT_DIFF_PATH_COUNTER", (count + 1).to_string())
+ .env("GIT_DIFF_PATH_TOTAL", total.to_string())
+ .stdin(Stdio::inherit())
+ .stdout(Stdio::inherit())
+ .stderr(Stdio::inherit())
+ .into();
+
+ cmd.arg(gix_path::from_bstr(old.rela_path).into_owned());
+ let mut out = prepare_diff_command::Command {
+ cmd,
+ old: None,
+ new: None,
+ };
+
+ out.old = add_resource(&mut out.cmd, old)?;
+ out.new = add_resource(&mut out.cmd, new)?;
+
+ if old.rela_path != new.rela_path {
+ out.cmd.arg(gix_path::from_bstr(new.rela_path).into_owned());
+ }
+
+ Ok(out)
+ }
+
+ /// Returns the resource of the given kind if it was set.
+ pub fn resource(&self, kind: ResourceKind) -> Option<Resource<'_>> {
+ let key = match kind {
+ ResourceKind::OldOrSource => self.old.as_ref(),
+ ResourceKind::NewOrDestination => self.new.as_ref(),
+ }?;
+ Resource::new(key, self.diff_cache.get(key)?).into()
+ }
+
+ /// Obtain the two resources that were previously set as `(OldOrSource, NewOrDestination)`, if both are set and available.
+ ///
+ /// This is useful if one wishes to manually prepare the diff, maybe for invoking external programs, instead of relying on
+ /// [`Self::prepare_diff()`].
+ pub fn resources(&self) -> Option<(Resource<'_>, Resource<'_>)> {
+ let key = &self.old.as_ref()?;
+ let value = self.diff_cache.get(key)?;
+ let old = Resource::new(key, value);
+
+ let key = &self.new.as_ref()?;
+ let value = self.diff_cache.get(key)?;
+ let new = Resource::new(key, value);
+ Some((old, new))
+ }
+
+ /// Prepare a diff operation on the [previously set](Self::set_resource()) [old](ResourceKind::OldOrSource) and
+ /// [new](ResourceKind::NewOrDestination) resources.
+ ///
+ /// The returned outcome allows to easily perform diff operations, based on the [`prepare_diff::Outcome::operation`] field,
+ /// which hints at what should be done.
+ pub fn prepare_diff(&mut self) -> Result<prepare_diff::Outcome<'_>, prepare_diff::Error> {
+ let old_key = &self.old.as_ref().ok_or(prepare_diff::Error::SourceOrDestinationUnset)?;
+ let old = self
+ .diff_cache
+ .get(old_key)
+ .ok_or(prepare_diff::Error::SourceOrDestinationUnset)?;
+ let new_key = &self.new.as_ref().ok_or(prepare_diff::Error::SourceOrDestinationUnset)?;
+ let new = self
+ .diff_cache
+ .get(new_key)
+ .ok_or(prepare_diff::Error::SourceOrDestinationUnset)?;
+ let mut out = prepare_diff::Outcome {
+ operation: prepare_diff::Operation::SourceOrDestinationIsBinary,
+ old: Resource::new(old_key, old),
+ new: Resource::new(new_key, new),
+ };
+
+ match (old.conversion.data, new.conversion.data) {
+ (None, None) => return Err(prepare_diff::Error::SourceAndDestinationRemoved),
+ (Some(pipeline::Data::Binary { .. }), _) | (_, Some(pipeline::Data::Binary { .. })) => return Ok(out),
+ _either_missing_or_non_binary => {
+ if let Some(command) = old
+ .conversion
+ .driver_index
+ .and_then(|idx| self.filter.drivers[idx].command.as_deref())
+ .filter(|_| self.options.skip_internal_diff_if_external_is_configured)
+ {
+ out.operation = prepare_diff::Operation::ExternalCommand {
+ command: command.as_bstr(),
+ };
+ return Ok(out);
+ }
+ }
+ }
+
+ out.operation = prepare_diff::Operation::InternalDiff {
+ algorithm: old
+ .conversion
+ .driver_index
+ .and_then(|idx| self.filter.drivers[idx].algorithm)
+ .or(self.options.algorithm)
+ .unwrap_or_default(),
+ };
+ Ok(out)
+ }
+
+ /// Every call to [set_resource()](Self::set_resource()) will keep the diffable data in memory, and that will never be cleared.
+ ///
+ /// Use this method to clear the cache, releasing memory. Note that this will also loose all information about resources
+ /// which means diffs would fail unless the resources are set again.
+ ///
+ /// Note that this also has to be called if the same resource is going to be diffed in different states, i.e. using different
+ /// `id`s, but the same `rela_path`.
+ pub fn clear_resource_cache(&mut self) {
+ self.old = None;
+ self.new = None;
+ self.diff_cache.clear();
+ }
+}
+
+impl Platform {
+ fn set_resource_inner(
+ &mut self,
+ id: gix_hash::ObjectId,
+ mode: gix_object::tree::EntryKind,
+ rela_path: &BStr,
+ kind: ResourceKind,
+ objects: &impl gix_object::FindObjectOrHeader,
+ ) -> Result<(), set_resource::Error> {
+ if matches!(
+ mode,
+ gix_object::tree::EntryKind::Commit | gix_object::tree::EntryKind::Tree
+ ) {
+ return Err(set_resource::Error::InvalidMode { mode });
+ }
+ let storage = match kind {
+ ResourceKind::OldOrSource => &mut self.old,
+ ResourceKind::NewOrDestination => &mut self.new,
+ }
+ .get_or_insert_with(Default::default);
+
+ storage.id = id;
+ storage.set_location(rela_path);
+ storage.is_link = matches!(mode, gix_object::tree::EntryKind::Link);
+ storage.use_id = self.filter.roots.by_kind(kind).is_none();
+
+ if self.diff_cache.contains_key(storage) {
+ return Ok(());
+ }
+ let entry = self
+ .attr_stack
+ .at_entry(rela_path, Some(false), objects)
+ .map_err(|err| set_resource::Error::Attributes {
+ source: err,
+ kind,
+ rela_path: rela_path.to_owned(),
+ })?;
+ let mut buf = Vec::new();
+ let out = self.filter.convert_to_diffable(
+ &id,
+ mode,
+ rela_path,
+ kind,
+ &mut |_, out| {
+ let _ = entry.matching_attributes(out);
+ },
+ objects,
+ self.filter_mode,
+ &mut buf,
+ )?;
+ let key = storage.clone();
+ assert!(
+ self.diff_cache
+ .insert(
+ key,
+ CacheValue {
+ conversion: out,
+ mode,
+ buffer: buf,
+ },
+ )
+ .is_none(),
+ "The key impl makes clashes impossible with our usage"
+ );
+ Ok(())
+ }
+}
diff --git a/vendor/gix-diff/src/lib.rs b/vendor/gix-diff/src/lib.rs
index 6d94a7591..1fe8d2e6b 100644
--- a/vendor/gix-diff/src/lib.rs
+++ b/vendor/gix-diff/src/lib.rs
@@ -1,13 +1,48 @@
//! Algorithms for diffing various git object types and for generating patches, highly optimized for performance.
//! ## Feature Flags
#![cfg_attr(
-feature = "document-features",
-cfg_attr(doc, doc = ::document_features::document_features!())
+ all(doc, feature = "document-features"),
+ doc = ::document_features::document_features!()
)]
-#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
+#![cfg_attr(all(doc, feature = "document-features"), feature(doc_cfg, doc_auto_cfg))]
#![deny(missing_docs, rust_2018_idioms)]
#![forbid(unsafe_code)]
+/// Re-export for use in public API.
+#[cfg(feature = "blob")]
+pub use gix_command as command;
+/// Re-export for use in public API.
+#[cfg(feature = "blob")]
+pub use gix_object as object;
+
+/// A structure to capture how to perform rename and copy tracking, used by the [rewrites::Tracker].
+#[derive(Debug, Copy, Clone, PartialEq)]
+#[cfg(feature = "blob")]
+pub struct Rewrites {
+ /// If `Some(…)`, also find copies. `None` is the default which does not try to detect copies at all.
+ ///
+ /// Note that this is an even more expensive operation than detecting renames stemming from additions and deletions
+ /// as the resulting set to search through is usually larger.
+ pub copies: Option<rewrites::Copies>,
+ /// The percentage of similarity needed for files to be considered renamed, defaulting to `Some(0.5)`.
+ /// This field is similar to `git diff -M50%`.
+ ///
+ /// If `None`, files are only considered equal if their content matches 100%.
+ /// Note that values greater than 1.0 have no different effect than 1.0.
+ pub percentage: Option<f32>,
+ /// The amount of files to consider for fuzzy rename or copy tracking. Defaults to 1000, meaning that only 1000*1000
+ /// combinations can be tested for fuzzy matches, i.e. the ones that try to find matches by comparing similarity.
+ /// If 0, there is no limit.
+ ///
+ /// If the limit would not be enough to test the entire set of combinations, the algorithm will trade in precision and not
+ /// run the fuzzy version of identity tests at all. That way results are never partial.
+ pub limit: usize,
+}
+
+/// Contains a [Tracker](rewrites::Tracker) to detect rewrites.
+#[cfg(feature = "blob")]
+pub mod rewrites;
+
///
pub mod tree;
diff --git a/vendor/gix-diff/src/rewrites/mod.rs b/vendor/gix-diff/src/rewrites/mod.rs
new file mode 100644
index 000000000..08d6f2cce
--- /dev/null
+++ b/vendor/gix-diff/src/rewrites/mod.rs
@@ -0,0 +1,71 @@
+use crate::Rewrites;
+
+/// Types related to the rename tracker for renames, rewrites and copies.
+pub mod tracker;
+
+/// A type to retain state related to an ongoing tracking operation to retain sets of interesting changes
+/// of which some are retained to at a later stage compute the ones that seem to be renames or copies.
+pub struct Tracker<T> {
+ /// The tracked items thus far, which will be used to determine renames/copies and rewrites later.
+ items: Vec<tracker::Item<T>>,
+ /// A place to store all paths in to reduce amount of allocations.
+ path_backing: Vec<u8>,
+ /// How to track copies and/or rewrites.
+ rewrites: Rewrites,
+}
+
+/// Determine in which set of files to search for copies.
+#[derive(Default, Debug, Copy, Clone, Eq, PartialEq)]
+pub enum CopySource {
+ /// Find copies from the set of modified files only.
+ #[default]
+ FromSetOfModifiedFiles,
+ /// Find copies from the set of modified files, as well as all files known to the source (i.e. previous state of the tree).
+ ///
+ /// This can be an expensive operation as it scales exponentially with the total amount of files in the set.
+ FromSetOfModifiedFilesAndAllSources,
+}
+
+/// Under which circumstances we consider a file to be a copy.
+#[derive(Debug, Copy, Clone, PartialEq)]
+pub struct Copies {
+ /// The set of files to search when finding the source of copies.
+ pub source: CopySource,
+ /// Equivalent to [`Rewrites::percentage`], but used for copy tracking.
+ ///
+ /// Useful to have similarity-based rename tracking and cheaper copy tracking.
+ pub percentage: Option<f32>,
+}
+
+impl Default for Copies {
+ fn default() -> Self {
+ Copies {
+ source: CopySource::default(),
+ percentage: Some(0.5),
+ }
+ }
+}
+
+/// Information collected while handling rewrites of files which may be tracked.
+#[derive(Default, Clone, Copy, Debug, PartialEq)]
+pub struct Outcome {
+ /// The options used to guide the rewrite tracking. Either fully provided by the caller or retrieved from git configuration.
+ pub options: Rewrites,
+ /// The amount of similarity checks that have been conducted to find renamed files and potentially copies.
+ pub num_similarity_checks: usize,
+ /// Set to the amount of worst-case rename permutations we didn't search as our limit didn't allow it.
+ pub num_similarity_checks_skipped_for_rename_tracking_due_to_limit: usize,
+ /// Set to the amount of worst-case copy permutations we didn't search as our limit didn't allow it.
+ pub num_similarity_checks_skipped_for_copy_tracking_due_to_limit: usize,
+}
+
+/// The default settings for rewrites according to the git configuration defaults.
+impl Default for Rewrites {
+ fn default() -> Self {
+ Rewrites {
+ copies: None,
+ percentage: Some(0.5),
+ limit: 1000,
+ }
+ }
+}
diff --git a/vendor/gix-diff/src/rewrites/tracker.rs b/vendor/gix-diff/src/rewrites/tracker.rs
new file mode 100644
index 000000000..95ebe7fab
--- /dev/null
+++ b/vendor/gix-diff/src/rewrites/tracker.rs
@@ -0,0 +1,620 @@
+//! ### Deviation
+//!
+//! Note that the algorithm implemented here is in many ways different from what `git` does.
+//!
+//! - it's less sophisticated and doesn't use any ranking of candidates. Instead, it picks the first possible match.
+//! - the set used for copy-detection is probably smaller by default.
+use std::ops::Range;
+
+use bstr::BStr;
+use gix_object::tree::{EntryKind, EntryMode};
+
+use crate::{
+ blob::{platform::prepare_diff::Operation, DiffLineStats, ResourceKind},
+ rewrites::{CopySource, Outcome, Tracker},
+ Rewrites,
+};
+
+/// The kind of a change.
+#[derive(Debug, Copy, Clone, Ord, PartialOrd, PartialEq, Eq)]
+pub enum ChangeKind {
+ /// The change represents the *deletion* of an item.
+ Deletion,
+ /// The change represents the *modification* of an item.
+ Modification,
+ /// The change represents the *addition* of an item.
+ Addition,
+}
+
+/// A trait providing all functionality to abstract over the concept of a change, as seen by the [`Tracker`].
+pub trait Change: Clone {
+ /// Return the hash of this change for identification.
+ ///
+ /// Note that this is the id of the object as stored in `git`, i.e. it must have gone through workspace
+ /// conversions.
+ fn id(&self) -> &gix_hash::oid;
+ /// Return the kind of this change.
+ fn kind(&self) -> ChangeKind;
+ /// Return more information about the kind of entry affected by this change.
+ fn entry_mode(&self) -> EntryMode;
+ /// Return the id of the change along with its mode.
+ fn id_and_entry_mode(&self) -> (&gix_hash::oid, EntryMode);
+}
+
+/// A set of tracked items allows to figure out their relations by figuring out their similarity.
+pub(crate) struct Item<T> {
+ /// The underlying raw change
+ change: T,
+ /// That slice into the backing for paths.
+ path: Range<usize>,
+ /// If true, this item was already emitted, i.e. seen by the caller.
+ emitted: bool,
+}
+
+impl<T: Change> Item<T> {
+ fn location<'a>(&self, backing: &'a [u8]) -> &'a BStr {
+ backing[self.path.clone()].as_ref()
+ }
+ fn entry_mode_compatible(&self, mode: EntryMode) -> bool {
+ use EntryKind::*;
+ matches!(
+ (mode.kind(), self.change.entry_mode().kind()),
+ (Blob | BlobExecutable, Blob | BlobExecutable) | (Link, Link)
+ )
+ }
+
+ fn is_source_for_destination_of(&self, kind: visit::SourceKind, dest_item_mode: EntryMode) -> bool {
+ self.entry_mode_compatible(dest_item_mode)
+ && match kind {
+ visit::SourceKind::Rename => !self.emitted && matches!(self.change.kind(), ChangeKind::Deletion),
+ visit::SourceKind::Copy => {
+ matches!(self.change.kind(), ChangeKind::Modification)
+ }
+ }
+ }
+}
+
+/// A module with types used in the user-callback in [Tracker::emit()](crate::rewrites::Tracker::emit()).
+pub mod visit {
+ use bstr::BStr;
+ use gix_object::tree::EntryMode;
+
+ use crate::blob::DiffLineStats;
+
+ /// The source of a rewrite, rename or copy.
+ #[derive(Debug, Clone, PartialEq, PartialOrd)]
+ pub struct Source<'a> {
+ /// The kind of entry.
+ pub entry_mode: EntryMode,
+ /// The hash of the state of the source as seen in the object database.
+ pub id: gix_hash::ObjectId,
+ /// Further specify what kind of source this is.
+ pub kind: SourceKind,
+ /// The repository-relative location of this entry.
+ pub location: &'a BStr,
+ /// If this is a rewrite, indicate how many lines would need to change to turn this source into the destination.
+ pub diff: Option<DiffLineStats>,
+ }
+
+ /// Further identify the kind of [Source].
+ #[derive(Debug, Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Hash)]
+ pub enum SourceKind {
+ /// This is the source of an entry that was renamed, as `source` was renamed to `destination`.
+ Rename,
+ /// This is the source of a copy, as `source` was copied into `destination`.
+ Copy,
+ }
+
+ /// A change along with a location.
+ #[derive(Clone)]
+ pub struct Destination<'a, T: Clone> {
+ /// The change at the given `location`.
+ pub change: T,
+ /// The repository-relative location of this destination.
+ pub location: &'a BStr,
+ }
+}
+
+///
+pub mod emit {
+ /// The error returned by [Tracker::emit()](super::Tracker::emit()).
+ #[derive(Debug, thiserror::Error)]
+ #[allow(missing_docs)]
+ pub enum Error {
+ #[error("Could not find blob for similarity checking")]
+ FindExistingBlob(#[from] gix_object::find::existing_object::Error),
+ #[error("Could not obtain exhaustive item set to use as possible sources for copy detection")]
+ GetItemsForExhaustiveCopyDetection(#[source] Box<dyn std::error::Error + Send + Sync>),
+ #[error(transparent)]
+ SetResource(#[from] crate::blob::platform::set_resource::Error),
+ #[error(transparent)]
+ PrepareDiff(#[from] crate::blob::platform::prepare_diff::Error),
+ }
+}
+
+/// Lifecycle
+impl<T: Change> Tracker<T> {
+ /// Create a new instance with `rewrites` configuration.
+ pub fn new(rewrites: Rewrites) -> Self {
+ Tracker {
+ items: vec![],
+ path_backing: vec![],
+ rewrites,
+ }
+ }
+}
+
+/// build state and find matches.
+impl<T: Change> Tracker<T> {
+ /// We may refuse the push if that information isn't needed for what we have to track.
+ pub fn try_push_change(&mut self, change: T, location: &BStr) -> Option<T> {
+ if !change.entry_mode().is_blob_or_symlink() {
+ return Some(change);
+ }
+ let keep = match (self.rewrites.copies, change.kind()) {
+ (Some(_find_copies), _) => true,
+ (None, ChangeKind::Modification { .. }) => false,
+ (None, _) => true,
+ };
+
+ if !keep {
+ return Some(change);
+ }
+
+ let start = self.path_backing.len();
+ self.path_backing.extend_from_slice(location);
+ self.items.push(Item {
+ path: start..self.path_backing.len(),
+ change,
+ emitted: false,
+ });
+ None
+ }
+
+ /// Can only be called once effectively as it alters its own state to assure each item is only emitted once.
+ ///
+ /// `cb(destination, source)` is called for each item, either with `Some(source)` if it's
+ /// the destination of a copy or rename, or with `None` for source if no relation to other
+ /// items in the tracked set exist, which is like saying 'no rename or rewrite or copy' happened.
+ ///
+ /// `objects` is used to access blob data for similarity checks if required and is taken directly from the object database.
+ /// Worktree filters and text conversions will be applied afterwards automatically. Note that object-caching *should not*
+ /// be enabled as caching is implemented by `diff_cache`, after all, the blob that's actually diffed is going
+ /// through conversion steps.
+ ///
+ /// `diff_cache` is a way to retain a cache of resources that are prepared for rapid diffing, and it also controls
+ /// the diff-algorithm (provided no user-algorithm is set).
+ /// Note that we control a few options of `diff_cache` to assure it will ignore external commands.
+ /// Note that we do not control how the `diff_cache` converts resources, it's left to the caller to decide
+ /// if it should look at what's stored in `git`, or in the working tree, along with all diff-specific conversions.
+ ///
+ /// `push_source_tree(push_fn: push(change, location))` is a function that is called when the entire tree of the source
+ /// should be added as modifications by calling `push` repeatedly to use for perfect copy tracking. Note that `push`
+ /// will panic if `change` is not a modification, and it's valid to not call `push` at all.
+ pub fn emit<PushSourceTreeFn, E>(
+ &mut self,
+ mut cb: impl FnMut(visit::Destination<'_, T>, Option<visit::Source<'_>>) -> crate::tree::visit::Action,
+ diff_cache: &mut crate::blob::Platform,
+ objects: &impl gix_object::FindObjectOrHeader,
+ mut push_source_tree: PushSourceTreeFn,
+ ) -> Result<Outcome, emit::Error>
+ where
+ PushSourceTreeFn: FnMut(&mut dyn FnMut(T, &BStr)) -> Result<(), E>,
+ E: std::error::Error + Send + Sync + 'static,
+ {
+ diff_cache.options.skip_internal_diff_if_external_is_configured = false;
+
+ fn by_id_and_location<T: Change>(a: &Item<T>, b: &Item<T>) -> std::cmp::Ordering {
+ a.change
+ .id()
+ .cmp(b.change.id())
+ .then_with(|| a.path.start.cmp(&b.path.start).then(a.path.end.cmp(&b.path.end)))
+ }
+ self.items.sort_by(by_id_and_location);
+
+ let mut out = Outcome {
+ options: self.rewrites,
+ ..Default::default()
+ };
+ self.match_pairs_of_kind(
+ visit::SourceKind::Rename,
+ &mut cb,
+ self.rewrites.percentage,
+ &mut out,
+ diff_cache,
+ objects,
+ )?;
+
+ if let Some(copies) = self.rewrites.copies {
+ self.match_pairs_of_kind(
+ visit::SourceKind::Copy,
+ &mut cb,
+ copies.percentage,
+ &mut out,
+ diff_cache,
+ objects,
+ )?;
+
+ match copies.source {
+ CopySource::FromSetOfModifiedFiles => {}
+ CopySource::FromSetOfModifiedFilesAndAllSources => {
+ push_source_tree(&mut |change, location| {
+ assert!(
+ self.try_push_change(change, location).is_none(),
+ "we must accept every change"
+ );
+ // make sure these aren't viable to be emitted anymore.
+ self.items.last_mut().expect("just pushed").emitted = true;
+ })
+ .map_err(|err| emit::Error::GetItemsForExhaustiveCopyDetection(Box::new(err)))?;
+ self.items.sort_by(by_id_and_location);
+
+ self.match_pairs_of_kind(
+ visit::SourceKind::Copy,
+ &mut cb,
+ copies.percentage,
+ &mut out,
+ diff_cache,
+ objects,
+ )?;
+ }
+ }
+ }
+
+ self.items
+ .sort_by(|a, b| a.location(&self.path_backing).cmp(b.location(&self.path_backing)));
+ for item in self.items.drain(..).filter(|item| !item.emitted) {
+ if cb(
+ visit::Destination {
+ location: item.location(&self.path_backing),
+ change: item.change,
+ },
+ None,
+ ) == crate::tree::visit::Action::Cancel
+ {
+ break;
+ }
+ }
+ Ok(out)
+ }
+}
+
+impl<T: Change> Tracker<T> {
+ fn match_pairs_of_kind(
+ &mut self,
+ kind: visit::SourceKind,
+ cb: &mut impl FnMut(visit::Destination<'_, T>, Option<visit::Source<'_>>) -> crate::tree::visit::Action,
+ percentage: Option<f32>,
+ out: &mut Outcome,
+ diff_cache: &mut crate::blob::Platform,
+ objects: &impl gix_object::FindObjectOrHeader,
+ ) -> Result<(), emit::Error> {
+ // we try to cheaply reduce the set of possibilities first, before possibly looking more exhaustively.
+ let needs_second_pass = !needs_exact_match(percentage);
+ if self.match_pairs(cb, None /* by identity */, kind, out, diff_cache, objects)?
+ == crate::tree::visit::Action::Cancel
+ {
+ return Ok(());
+ }
+ if needs_second_pass {
+ let is_limited = if self.rewrites.limit == 0 {
+ false
+ } else {
+ let (num_src, num_dst) =
+ estimate_involved_items(self.items.iter().map(|item| (item.emitted, item.change.kind())), kind);
+ let permutations = num_src * num_dst;
+ if permutations > self.rewrites.limit {
+ match kind {
+ visit::SourceKind::Rename => {
+ out.num_similarity_checks_skipped_for_rename_tracking_due_to_limit = permutations;
+ }
+ visit::SourceKind::Copy => {
+ out.num_similarity_checks_skipped_for_copy_tracking_due_to_limit = permutations;
+ }
+ }
+ true
+ } else {
+ false
+ }
+ };
+ if !is_limited {
+ self.match_pairs(cb, percentage, kind, out, diff_cache, objects)?;
+ }
+ }
+ Ok(())
+ }
+
+ fn match_pairs(
+ &mut self,
+ cb: &mut impl FnMut(visit::Destination<'_, T>, Option<visit::Source<'_>>) -> crate::tree::visit::Action,
+ percentage: Option<f32>,
+ kind: visit::SourceKind,
+ stats: &mut Outcome,
+ diff_cache: &mut crate::blob::Platform,
+ objects: &impl gix_object::FindObjectOrHeader,
+ ) -> Result<crate::tree::visit::Action, emit::Error> {
+ let mut dest_ofs = 0;
+ while let Some((mut dest_idx, dest)) = self.items[dest_ofs..].iter().enumerate().find_map(|(idx, item)| {
+ (!item.emitted && matches!(item.change.kind(), ChangeKind::Addition)).then_some((idx, item))
+ }) {
+ dest_idx += dest_ofs;
+ dest_ofs = dest_idx + 1;
+ let src = find_match(
+ &self.items,
+ dest,
+ dest_idx,
+ percentage,
+ kind,
+ stats,
+ objects,
+ diff_cache,
+ &self.path_backing,
+ )?
+ .map(|(src_idx, src, diff)| {
+ let (id, entry_mode) = src.change.id_and_entry_mode();
+ let id = id.to_owned();
+ let location = src.location(&self.path_backing);
+ (
+ visit::Source {
+ entry_mode,
+ id,
+ kind,
+ location,
+ diff,
+ },
+ src_idx,
+ )
+ });
+ if src.is_none() {
+ continue;
+ }
+ let location = dest.location(&self.path_backing);
+ let change = dest.change.clone();
+ let dest = visit::Destination { change, location };
+ self.items[dest_idx].emitted = true;
+ if let Some(src_idx) = src.as_ref().map(|t| t.1) {
+ self.items[src_idx].emitted = true;
+ }
+ if cb(dest, src.map(|t| t.0)) == crate::tree::visit::Action::Cancel {
+ return Ok(crate::tree::visit::Action::Cancel);
+ }
+ }
+ Ok(crate::tree::visit::Action::Continue)
+ }
+}
+
+/// Returns the amount of viable sources and destinations for `items` as eligible for the given `kind` of operation.
+fn estimate_involved_items(
+ items: impl IntoIterator<Item = (bool, ChangeKind)>,
+ kind: visit::SourceKind,
+) -> (usize, usize) {
+ items
+ .into_iter()
+ .filter(|(emitted, _)| match kind {
+ visit::SourceKind::Rename => !*emitted,
+ visit::SourceKind::Copy => true,
+ })
+ .fold((0, 0), |(mut src, mut dest), (emitted, change_kind)| {
+ match change_kind {
+ ChangeKind::Addition => {
+ if kind == visit::SourceKind::Rename || !emitted {
+ dest += 1;
+ }
+ }
+ ChangeKind::Deletion => {
+ if kind == visit::SourceKind::Rename {
+ src += 1
+ }
+ }
+ ChangeKind::Modification => {
+ if kind == visit::SourceKind::Copy {
+ src += 1
+ }
+ }
+ }
+ (src, dest)
+ })
+}
+
+fn needs_exact_match(percentage: Option<f32>) -> bool {
+ percentage.map_or(true, |p| p >= 1.0)
+}
+
+/// <`src_idx`, src, possibly diff stat>
+type SourceTuple<'a, T> = (usize, &'a Item<T>, Option<DiffLineStats>);
+
+/// Find `item` in our set of items ignoring `item_idx` to avoid finding ourselves, by similarity indicated by `percentage`.
+/// The latter can be `None` or `Some(x)` where `x>=1` for identity, and anything else for similarity.
+/// We also ignore emitted items entirely.
+/// Use `kind` to indicate what kind of match we are looking for, which might be deletions matching an `item` addition, or
+/// any non-deletion otherwise.
+/// Note that we always try to find by identity first even if a percentage is given as it's much faster and may reduce the set
+/// of items to be searched.
+#[allow(clippy::too_many_arguments)]
+fn find_match<'a, T: Change>(
+ items: &'a [Item<T>],
+ item: &Item<T>,
+ item_idx: usize,
+ percentage: Option<f32>,
+ kind: visit::SourceKind,
+ stats: &mut Outcome,
+ objects: &impl gix_object::FindObjectOrHeader,
+ diff_cache: &mut crate::blob::Platform,
+ path_backing: &[u8],
+) -> Result<Option<SourceTuple<'a, T>>, emit::Error> {
+ let (item_id, item_mode) = item.change.id_and_entry_mode();
+ if needs_exact_match(percentage) || item_mode.is_link() {
+ let first_idx = items.partition_point(|a| a.change.id() < item_id);
+ let range = match items.get(first_idx..).map(|items| {
+ let end = items
+ .iter()
+ .position(|a| a.change.id() != item_id)
+ .map_or(items.len(), |idx| first_idx + idx);
+ first_idx..end
+ }) {
+ Some(range) => range,
+ None => return Ok(None),
+ };
+ if range.is_empty() {
+ return Ok(None);
+ }
+ let res = items[range.clone()].iter().enumerate().find_map(|(mut src_idx, src)| {
+ src_idx += range.start;
+ (src_idx != item_idx && src.is_source_for_destination_of(kind, item_mode)).then_some((src_idx, src, None))
+ });
+ if let Some(src) = res {
+ return Ok(Some(src));
+ }
+ } else {
+ let mut has_new = false;
+ let percentage = percentage.expect("it's set to something below 1.0 and we assured this");
+ debug_assert_eq!(
+ item.change.entry_mode().kind(),
+ EntryKind::Blob,
+ "symlinks are matched exactly, and trees aren't used here"
+ );
+
+ for (can_idx, src) in items
+ .iter()
+ .enumerate()
+ .filter(|(src_idx, src)| *src_idx != item_idx && src.is_source_for_destination_of(kind, item_mode))
+ {
+ if !has_new {
+ diff_cache.set_resource(
+ item_id.to_owned(),
+ item_mode.kind(),
+ item.location(path_backing),
+ ResourceKind::NewOrDestination,
+ objects,
+ )?;
+ has_new = true;
+ }
+ let (src_id, src_mode) = src.change.id_and_entry_mode();
+ diff_cache.set_resource(
+ src_id.to_owned(),
+ src_mode.kind(),
+ src.location(path_backing),
+ ResourceKind::OldOrSource,
+ objects,
+ )?;
+ let prep = diff_cache.prepare_diff()?;
+ stats.num_similarity_checks += 1;
+ match prep.operation {
+ Operation::InternalDiff { algorithm } => {
+ let tokens =
+ crate::blob::intern::InternedInput::new(prep.old.intern_source(), prep.new.intern_source());
+ let counts = crate::blob::diff(
+ algorithm,
+ &tokens,
+ crate::blob::sink::Counter::new(diff::Statistics {
+ removed_bytes: 0,
+ input: &tokens,
+ }),
+ );
+ let old_data_len = prep.old.data.as_slice().unwrap_or_default().len();
+ let new_data_len = prep.new.data.as_slice().unwrap_or_default().len();
+ let similarity = (old_data_len - counts.wrapped) as f32 / old_data_len.max(new_data_len) as f32;
+ if similarity >= percentage {
+ return Ok(Some((
+ can_idx,
+ src,
+ DiffLineStats {
+ removals: counts.removals,
+ insertions: counts.insertions,
+ before: tokens.before.len().try_into().expect("interner handles only u32"),
+ after: tokens.after.len().try_into().expect("interner handles only u32"),
+ similarity,
+ }
+ .into(),
+ )));
+ }
+ }
+ Operation::ExternalCommand { .. } => {
+ unreachable!("we have disabled this possibility with an option")
+ }
+ Operation::SourceOrDestinationIsBinary => {
+ // TODO: figure out if git does more here
+ }
+ };
+ }
+ }
+ Ok(None)
+}
+
+mod diff {
+ use std::ops::Range;
+
+ pub struct Statistics<'a, 'data> {
+ pub removed_bytes: usize,
+ pub input: &'a crate::blob::intern::InternedInput<&'data [u8]>,
+ }
+
+ impl<'a, 'data> crate::blob::Sink for Statistics<'a, 'data> {
+ type Out = usize;
+
+ fn process_change(&mut self, before: Range<u32>, _after: Range<u32>) {
+ self.removed_bytes = self.input.before[before.start as usize..before.end as usize]
+ .iter()
+ .map(|token| self.input.interner[*token].len())
+ .sum();
+ }
+
+ fn finish(self) -> Self::Out {
+ self.removed_bytes
+ }
+ }
+}
+
+#[cfg(test)]
+mod estimate_involved_items {
+ use super::estimate_involved_items;
+ use crate::rewrites::tracker::{visit::SourceKind, ChangeKind};
+
+ #[test]
+ fn renames_count_unemitted_as_sources_and_destinations() {
+ let items = [
+ (false, ChangeKind::Addition),
+ (true, ChangeKind::Deletion),
+ (true, ChangeKind::Deletion),
+ ];
+ assert_eq!(
+ estimate_involved_items(items, SourceKind::Rename),
+ (0, 1),
+ "here we only have one eligible source, hence nothing to do"
+ );
+ assert_eq!(
+ estimate_involved_items(items.into_iter().map(|t| (false, t.1)), SourceKind::Rename),
+ (2, 1),
+ "now we have more possibilities as renames count un-emitted deletions as source"
+ );
+ }
+
+ #[test]
+ fn copies_do_not_count_additions_as_sources() {
+ let items = [
+ (false, ChangeKind::Addition),
+ (true, ChangeKind::Addition),
+ (true, ChangeKind::Deletion),
+ ];
+ assert_eq!(
+ estimate_involved_items(items, SourceKind::Copy),
+ (0, 1),
+ "one addition as source, the other isn't counted as it's emitted, nor is it considered a copy-source.\
+ deletions don't count"
+ );
+ }
+
+ #[test]
+ fn copies_count_modifications_as_sources() {
+ let items = [
+ (false, ChangeKind::Addition),
+ (true, ChangeKind::Modification),
+ (false, ChangeKind::Modification),
+ ];
+ assert_eq!(
+ estimate_involved_items(items, SourceKind::Copy),
+ (2, 1),
+ "any modifications is a valid source, emitted or not"
+ );
+ }
+}
diff --git a/vendor/gix-diff/src/tree/changes.rs b/vendor/gix-diff/src/tree/changes.rs
index 16e8f7873..ee86bd8bc 100644
--- a/vendor/gix-diff/src/tree/changes.rs
+++ b/vendor/gix-diff/src/tree/changes.rs
@@ -1,7 +1,6 @@
use std::{borrow::BorrowMut, collections::VecDeque};
-use gix_hash::{oid, ObjectId};
-use gix_object::tree::EntryRef;
+use gix_object::{tree::EntryRef, FindExt};
use crate::{
tree,
@@ -12,11 +11,8 @@ use crate::{
#[derive(Debug, thiserror::Error)]
#[allow(missing_docs)]
pub enum Error {
- #[error("The object {oid} referenced by the tree or the tree itself was not found in the database")]
- FindExisting {
- oid: ObjectId,
- source: Box<dyn std::error::Error + Send + Sync + 'static>,
- },
+ #[error(transparent)]
+ Find(#[from] gix_object::find::existing_iter::Error),
#[error("The delegate cancelled the operation")]
Cancelled,
#[error(transparent)]
@@ -24,12 +20,12 @@ pub enum Error {
}
impl<'a> tree::Changes<'a> {
- /// Calculate the changes that would need to be applied to `self` to get `other`.
+ /// Calculate the changes that would need to be applied to `self` to get `other` using `objects` to obtain objects as needed for traversal.
///
/// * The `state` maybe owned or mutably borrowed to allow reuses allocated data structures through multiple runs.
/// * `locate` is a function `f(object_id, &mut buffer) -> Option<TreeIter>` to return a `TreeIter` for the given object id backing
/// its data in the given buffer. Returning `None` is unexpected as these trees are obtained during iteration, and in a typical
- /// database errors are not expected either which is why the error case is omitted. To allow proper error reporting, [`Error::FindExisting`]
+ /// database errors are not expected either which is why the error case is omitted. To allow proper error reporting, [`Error::Find`]
/// should be converted into a more telling error.
/// * `delegate` will receive the computed changes, see the [`Visit`][`tree::Visit`] trait for more information on what to expect.
///
@@ -47,16 +43,14 @@ impl<'a> tree::Changes<'a> {
///
/// [git_cmp_c]: https://github.com/git/git/blob/311531c9de557d25ac087c1637818bd2aad6eb3a/tree-diff.c#L49:L65
/// [git_cmp_rs]: https://github.com/Byron/gitoxide/blob/a4d5f99c8dc99bf814790928a3bf9649cd99486b/gix-object/src/mutable/tree.rs#L52-L55
- pub fn needed_to_obtain<FindFn, R, StateMut, E>(
+ pub fn needed_to_obtain<R, StateMut>(
mut self,
other: gix_object::TreeRefIter<'_>,
mut state: StateMut,
- mut find: FindFn,
+ objects: impl gix_object::Find,
delegate: &mut R,
) -> Result<(), Error>
where
- FindFn: for<'b> FnMut(&oid, &'b mut Vec<u8>) -> Result<gix_object::TreeRefIter<'b>, E>,
- E: std::error::Error + Send + Sync + 'static,
R: tree::Visit,
StateMut: BorrowMut<tree::State>,
{
@@ -77,28 +71,16 @@ impl<'a> tree::Changes<'a> {
match state.trees.pop_front() {
Some((None, Some(rhs))) => {
delegate.pop_front_tracked_path_and_set_current();
- rhs_entries = peekable(find(&rhs, &mut state.buf2).map_err(|err| Error::FindExisting {
- oid: rhs,
- source: err.into(),
- })?);
+ rhs_entries = peekable(objects.find_tree_iter(&rhs, &mut state.buf2)?);
}
Some((Some(lhs), Some(rhs))) => {
delegate.pop_front_tracked_path_and_set_current();
- lhs_entries = peekable(find(&lhs, &mut state.buf1).map_err(|err| Error::FindExisting {
- oid: lhs,
- source: err.into(),
- })?);
- rhs_entries = peekable(find(&rhs, &mut state.buf2).map_err(|err| Error::FindExisting {
- oid: rhs,
- source: err.into(),
- })?);
+ lhs_entries = peekable(objects.find_tree_iter(&lhs, &mut state.buf1)?);
+ rhs_entries = peekable(objects.find_tree_iter(&rhs, &mut state.buf2)?);
}
Some((Some(lhs), None)) => {
delegate.pop_front_tracked_path_and_set_current();
- lhs_entries = peekable(find(&lhs, &mut state.buf1).map_err(|err| Error::FindExisting {
- oid: lhs,
- source: err.into(),
- })?);
+ lhs_entries = peekable(objects.find_tree_iter(&lhs, &mut state.buf1)?);
}
Some((None, None)) => unreachable!("BUG: it makes no sense to fill the stack with empties"),
None => return Ok(()),
@@ -267,9 +249,8 @@ fn handle_lhs_and_rhs_with_equal_filenames<R: tree::Visit>(
queue: &mut VecDeque<TreeInfoPair>,
delegate: &mut R,
) -> Result<(), Error> {
- use gix_object::tree::EntryMode::*;
- match (lhs.mode, rhs.mode) {
- (Tree, Tree) => {
+ match (lhs.mode.is_tree(), rhs.mode.is_tree()) {
+ (true, true) => {
delegate.push_back_tracked_path_component(lhs.filename);
if lhs.oid != rhs.oid
&& delegate
@@ -285,7 +266,7 @@ fn handle_lhs_and_rhs_with_equal_filenames<R: tree::Visit>(
}
queue.push_back((Some(lhs.oid.to_owned()), Some(rhs.oid.to_owned())));
}
- (_, Tree) => {
+ (_, true) => {
delegate.push_back_tracked_path_component(lhs.filename);
if delegate
.visit(Change::Deletion {
@@ -307,7 +288,7 @@ fn handle_lhs_and_rhs_with_equal_filenames<R: tree::Visit>(
};
queue.push_back((None, Some(rhs.oid.to_owned())));
}
- (Tree, _) => {
+ (true, _) => {
delegate.push_back_tracked_path_component(lhs.filename);
if delegate
.visit(Change::Deletion {
@@ -329,9 +310,9 @@ fn handle_lhs_and_rhs_with_equal_filenames<R: tree::Visit>(
};
queue.push_back((Some(lhs.oid.to_owned()), None));
}
- (lhs_non_tree, rhs_non_tree) => {
+ (false, false) => {
delegate.push_path_component(lhs.filename);
- debug_assert!(lhs_non_tree.is_no_tree() && rhs_non_tree.is_no_tree());
+ debug_assert!(lhs.mode.is_no_tree() && lhs.mode.is_no_tree());
if lhs.oid != rhs.oid
&& delegate
.visit(Change::Modification {
@@ -359,7 +340,7 @@ fn peekable<I: Iterator>(iter: I) -> IteratorType<I> {
mod tests {
use std::cmp::Ordering;
- use gix_object::tree::EntryMode;
+ use gix_object::tree::EntryKind;
use super::*;
@@ -368,12 +349,12 @@ mod tests {
let null = gix_hash::ObjectId::null(gix_hash::Kind::Sha1);
let actual = compare(
&EntryRef {
- mode: EntryMode::Blob,
+ mode: EntryKind::Blob.into(),
filename: "plumbing-cli.rs".into(),
oid: &null,
},
&EntryRef {
- mode: EntryMode::Tree,
+ mode: EntryKind::Tree.into(),
filename: "plumbing".into(),
oid: &null,
},
@@ -381,12 +362,12 @@ mod tests {
assert_eq!(actual, Ordering::Less);
let actual = compare(
&EntryRef {
- mode: EntryMode::Tree,
+ mode: EntryKind::Tree.into(),
filename: "plumbing-cli.rs".into(),
oid: &null,
},
&EntryRef {
- mode: EntryMode::Blob,
+ mode: EntryKind::Blob.into(),
filename: "plumbing".into(),
oid: &null,
},
diff --git a/vendor/gix-diff/src/tree/visit.rs b/vendor/gix-diff/src/tree/visit.rs
index 82e38931d..a113d46b1 100644
--- a/vendor/gix-diff/src/tree/visit.rs
+++ b/vendor/gix-diff/src/tree/visit.rs
@@ -92,6 +92,46 @@ pub trait Visit {
fn visit(&mut self, change: Change) -> Action;
}
+#[cfg(feature = "blob")]
+mod change_impls {
+ use gix_hash::oid;
+ use gix_object::tree::EntryMode;
+
+ use crate::{rewrites::tracker::ChangeKind, tree::visit::Change};
+
+ impl crate::rewrites::tracker::Change for crate::tree::visit::Change {
+ fn id(&self) -> &oid {
+ match self {
+ Change::Addition { oid, .. } | Change::Deletion { oid, .. } | Change::Modification { oid, .. } => oid,
+ }
+ }
+
+ fn kind(&self) -> ChangeKind {
+ match self {
+ Change::Addition { .. } => ChangeKind::Addition,
+ Change::Deletion { .. } => ChangeKind::Deletion,
+ Change::Modification { .. } => ChangeKind::Modification,
+ }
+ }
+
+ fn entry_mode(&self) -> EntryMode {
+ match self {
+ Change::Addition { entry_mode, .. }
+ | Change::Deletion { entry_mode, .. }
+ | Change::Modification { entry_mode, .. } => *entry_mode,
+ }
+ }
+
+ fn id_and_entry_mode(&self) -> (&oid, EntryMode) {
+ match self {
+ Change::Addition { entry_mode, oid, .. }
+ | Change::Deletion { entry_mode, oid, .. }
+ | Change::Modification { entry_mode, oid, .. } => (oid, *entry_mode),
+ }
+ }
+ }
+}
+
#[cfg(test)]
mod tests {
use super::*;