diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-19 09:26:03 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-19 09:26:03 +0000 |
commit | 9918693037dce8aa4bb6f08741b6812923486c18 (patch) | |
tree | 21d2b40bec7e6a7ea664acee056eb3d08e15a1cf /vendor/gix-config-value | |
parent | Releasing progress-linux version 1.75.0+dfsg1-5~progress7.99u1. (diff) | |
download | rustc-9918693037dce8aa4bb6f08741b6812923486c18.tar.xz rustc-9918693037dce8aa4bb6f08741b6812923486c18.zip |
Merging upstream version 1.76.0+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vendor/gix-config-value')
-rw-r--r-- | vendor/gix-config-value/.cargo-checksum.json | 2 | ||||
-rw-r--r-- | vendor/gix-config-value/CHANGELOG.md | 506 | ||||
-rw-r--r-- | vendor/gix-config-value/Cargo.toml | 12 | ||||
-rw-r--r-- | vendor/gix-config-value/LICENSE-MIT | 2 | ||||
-rw-r--r-- | vendor/gix-config-value/src/lib.rs | 6 | ||||
-rw-r--r-- | vendor/gix-config-value/tests/value/boolean.rs | 42 | ||||
-rw-r--r-- | vendor/gix-config-value/tests/value/color.rs | 199 | ||||
-rw-r--r-- | vendor/gix-config-value/tests/value/integer.rs | 74 | ||||
-rw-r--r-- | vendor/gix-config-value/tests/value/main.rs | 17 | ||||
-rw-r--r-- | vendor/gix-config-value/tests/value/path.rs | 129 |
10 files changed, 10 insertions, 979 deletions
diff --git a/vendor/gix-config-value/.cargo-checksum.json b/vendor/gix-config-value/.cargo-checksum.json index 96f915761..f384a2811 100644 --- a/vendor/gix-config-value/.cargo-checksum.json +++ b/vendor/gix-config-value/.cargo-checksum.json @@ -1 +1 @@ -{"files":{"CHANGELOG.md":"c31f990b23b9cb665d2e7865bd7db4292efcd61064f2993e46ce3a01da9caab5","Cargo.toml":"71ad2233a11d98055865266baa7d29865b1eef3223b6eb79e58dad02264700b5","LICENSE-APACHE":"cb4780590812826851ba250f90bed0ed19506ec98f6865a0e2e20bbf62391ff9","LICENSE-MIT":"49df47913ab2beafe8dc45607877ae64198bf0eee64aaad3e82ed9e4d27424e8","src/boolean.rs":"77a8302108c63f85e276408aeda80ffad98fa85ea5ce06b732b1fccba4118f0c","src/color.rs":"ca6efb8e34610c4846d0c11f9e9786dd81a8b2f6031513f4d2e29203b05c40e1","src/integer.rs":"9c0411c4fb9c604f8ee6b29469606381c38001ed136dfc10026625c6ea50d19d","src/lib.rs":"5709e5ef8ca4cdb5ea7faaac2678160cf735d16fde1a633843b90744d8e41bae","src/path.rs":"1e71d457a3af64586c0c6cae89440f5c7fc2de566addd89d4a2dcc87cb59477e","src/types.rs":"ec0632eef65b0691289caa873b5cb913d112cf9878e7ab5eeadf21e800c4f356","tests/value/boolean.rs":"105356f72445fae217444949a9dadf7d487682998bc3a37f8eb636c5c15da602","tests/value/color.rs":"6d8b93e13e689c2ffd96ad9f42d498a9fe9dfc5f1ae472bb4aa5fc9c63f7fefa","tests/value/integer.rs":"961e700fd2b3511d404471f91f46760a9e0fa7d70663055be476a15eded8a2ac","tests/value/main.rs":"f488f0fd4e508e45b83d81a191b0a932940b5ee6e8df9395f30d1b8d03b6f359","tests/value/path.rs":"253f1b73338c9d41b2b2cf280cd8a59f591c1296aecc96eeede4db4c0e0b63c9"},"package":"ea7505b97f4d8e7933e29735a568ba2f86d8de466669d9f0e8321384f9972f47"}
\ No newline at end of file +{"files":{"Cargo.toml":"4c0b39a1f8ee186609c354c47332f949060f5fbc231fb018c9262427fececd88","LICENSE-APACHE":"cb4780590812826851ba250f90bed0ed19506ec98f6865a0e2e20bbf62391ff9","LICENSE-MIT":"6f610e51b59dfbcbee281f58cc6d963bf716199dc7384dbaa94ccc3a6e343ce6","src/boolean.rs":"77a8302108c63f85e276408aeda80ffad98fa85ea5ce06b732b1fccba4118f0c","src/color.rs":"ca6efb8e34610c4846d0c11f9e9786dd81a8b2f6031513f4d2e29203b05c40e1","src/integer.rs":"9c0411c4fb9c604f8ee6b29469606381c38001ed136dfc10026625c6ea50d19d","src/lib.rs":"8651d56b94eb01f04f3fd930d140a5d719ff79bc02b2f72f142dde7f9672a36b","src/path.rs":"1e71d457a3af64586c0c6cae89440f5c7fc2de566addd89d4a2dcc87cb59477e","src/types.rs":"ec0632eef65b0691289caa873b5cb913d112cf9878e7ab5eeadf21e800c4f356"},"package":"6419db582ea84dfb58c7e7b0af7fd62c808aa14954af2936a33f89b0f4ed018e"}
\ No newline at end of file diff --git a/vendor/gix-config-value/CHANGELOG.md b/vendor/gix-config-value/CHANGELOG.md deleted file mode 100644 index 7f51126ee..000000000 --- a/vendor/gix-config-value/CHANGELOG.md +++ /dev/null @@ -1,506 +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.14.0 (2023-09-08) - -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 17 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 for release ([`375db06`](https://github.com/Byron/gitoxide/commit/375db06a8442378c3f7a922fae38e2a6694d9d04)) - - Merge branch 'gix-submodule' ([`363ee77`](https://github.com/Byron/gitoxide/commit/363ee77400805f473c9ad66eadad9214e7ab66f4)) -</details> - -## 0.13.0 (2023-08-22) - -### Bug Fixes - - - <csr-id-c51c8daee1ab54130ae3ed83ce67d08f01c4881a/> fix incorrect s/git-config/gix-config/ - 3a861c8f049f6502d3bcbdac752659aa1aeda46a just blindly replaced any - occurence of "git-config" or "git_config" with "gix-config"/"gix_config". - - There is no such thing as a gix-config file. - gix-config is a git-config file parser. - -### Commit Statistics - -<csr-read-only-do-not-edit/> - - - 4 commits contributed to the release over the course of 3 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-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 pull request #988 from not-my-profile/fix-gix-config-sub ([`7735047`](https://github.com/Byron/gitoxide/commit/7735047198bd7cc5059ca338f5c2147dd273f711)) - - Fix incorrect s/git-config/gix-config/ ([`c51c8da`](https://github.com/Byron/gitoxide/commit/c51c8daee1ab54130ae3ed83ce67d08f01c4881a)) -</details> - -## 0.12.5 (2023-07-22) - -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 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-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.12.4 (2023-07-19) - -<csr-id-7f7db9794c23b87c8ea50b7bcf38955c9d977624/> - -### Chore - - - <csr-id-7f7db9794c23b87c8ea50b7bcf38955c9d977624/> curtail `bstr` features to exactly what's needed. - -### Commit Statistics - -<csr-read-only-do-not-edit/> - - - 5 commits contributed to the release over the course of 17 calendar days. - - 19 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-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)) - - Merge branch 'integrate-filtering' ([`b19a56d`](https://github.com/Byron/gitoxide/commit/b19a56dcfa9bea86332a84aa4e8fad445e7d1724)) - - Curtail `bstr` features to exactly what's needed. ([`7f7db97`](https://github.com/Byron/gitoxide/commit/7f7db9794c23b87c8ea50b7bcf38955c9d977624)) -</details> - -## 0.12.3 (2023-06-29) - -A maintenance release without user-facing changes. - -### Commit Statistics - -<csr-read-only-do-not-edit/> - - - 3 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-glob v0.9.1, gix-attributes v0.14.1, gix-config-value v0.12.3, gix-ref v0.32.1, gix-sec v0.8.3, gix-config v0.25.1, gix-url v0.20.1, gix-credentials v0.16.1, gix-discover v0.21.1, gix-ignore v0.4.1, gix-pack v0.39.1, gix-odb v0.49.1, gix-worktree v0.21.1, gix v0.48.0 ([`69c6a36`](https://github.com/Byron/gitoxide/commit/69c6a36ba14cbef129deebda9fd8870005fefa17)) - - Prepare changelogs prior to release ([`c143cf4`](https://github.com/Byron/gitoxide/commit/c143cf48ee1885467e3e9262a3f8823a1247bfe0)) - - Align usage of `gix-path` across all crates ([`73c1292`](https://github.com/Byron/gitoxide/commit/73c1292be393986c4a1adde1400abf551e850da0)) -</details> - -## 0.12.2 (2023-06-22) - -A maintenance release without user-facing changes. - -### Commit Statistics - -<csr-read-only-do-not-edit/> - - - 4 commits contributed to the release over the course of 5 calendar days. - - 15 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.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)) -</details> - -## 0.12.1 (2023-06-06) - -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 12 calendar days. - - 40 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 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)) -</details> - -## 0.12.0 (2023-04-27) - -A maintenance release without user-facing changes. - -### Commit Statistics - -<csr-read-only-do-not-edit/> - - - 3 commits contributed to the release. - - 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-path v0.8.0, gix-glob v0.7.0, gix-attributes v0.12.0, gix-config-value v0.12.0, gix-ref v0.29.0, gix-sec v0.8.0, gix-config v0.22.0, gix-prompt v0.5.0, gix-url v0.18.0, gix-credentials v0.14.0, gix-discover v0.18.0, gix-ignore v0.2.0, gix-pack v0.35.0, gix-odb v0.45.0, gix-transport v0.31.0, gix-protocol v0.32.0, gix-refspec v0.10.1, gix-worktree v0.17.0, gix v0.44.1 ([`7ebc9f7`](https://github.com/Byron/gitoxide/commit/7ebc9f734ec4371dd27daa568c0244185bb49eb5)) - - Prepare changelogs prior to release ([`0135158`](https://github.com/Byron/gitoxide/commit/013515897215400539bfd53c25548bd054186ba6)) - - Bump gix-path v0.8.0, safety bump 20 crates (gix set to 0.44.1 manually) ([`43ebaf2`](https://github.com/Byron/gitoxide/commit/43ebaf267557218865862538ffc7bdf00558492f)) -</details> - -## 0.11.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/> - - - 7 commits contributed to the release over the course of 23 calendar days. - - 27 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) - -### 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 '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)) - - Merge branch 'patch-1' ([`d0052c1`](https://github.com/Byron/gitoxide/commit/d0052c13cabcde8058177d2439053b50ea5adbfc)) - - Update to latest `bitflags` version. ([`594cca5`](https://github.com/Byron/gitoxide/commit/594cca51840c00654af05acc7f7c7d01fe699067)) -</details> - -## 0.10.2 (2023-03-30) - -### Documentation - - - <csr-id-02c4659984fa6423bc76cc4980a143edaba8ace0/> fix minor typos - -### 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/> - - - 2 commits contributed to the release. - - 41 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-path v0.7.3, gix-config-value v0.10.2, gix-config v0.20.1, gix-discover v0.16.2, gix-index v0.15.1, gix-odb v0.43.1, gix-packetline v0.15.1, gix-protocol v0.30.2, gix-worktree v0.15.2, gix v0.43.1 ([`38eed1d`](https://github.com/Byron/gitoxide/commit/38eed1d06e7cbb8fbcd54b2cad3163ca45e0baf1)) - - Fix minor typos ([`02c4659`](https://github.com/Byron/gitoxide/commit/02c4659984fa6423bc76cc4980a143edaba8ace0)) -</details> - -## 0.10.1 (2023-02-17) - -<csr-id-4ebe2ac05dc8bef3bc1783afca3fcfdc565c2aae/> - -### 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-99905bacace8aed42b16d43f0f04cae996cb971c/> upgrade `bstr` to `1.0.1` - -### Other - - - <csr-id-4ebe2ac05dc8bef3bc1783afca3fcfdc565c2aae/> Actively discourage using `Boolean::try_from("")` explicitly. - Use `config.boolean(…)` instead. - -### Bug Fixes - - - <csr-id-38b92ba9615f9c90cfeed5bd050007168fa6df94/> build error on Android - -### New Features - - - <csr-id-3577aefc68d9aec149e0a0f4192f06d6de9ff531/> `Default` implementation for `Boolean` and `Integer` - - <csr-id-5f675d387e52a75ff7bd17a38516ce9778ea6b7e/> `Boolean::try_from(OsString)` - This makes getting booleans from the environment easier. - -### Changed - - - <csr-id-5ad296577d837b0699b4718fa2be3d0978c4e342/> `git-config` now uses `git-config-value`. - -### Documentation - - - <csr-id-39ed9eda62b7718d5109135e5ad406fb1fe2978c/> fix typos - -### Commit Statistics - -<csr-read-only-do-not-edit/> - - - 84 commits contributed to the release over the course of 172 calendar days. - - 8 commits were understood as [conventional](https://www.conventionalcommits.org). - - 3 unique issues were worked on: [#450](https://github.com/Byron/gitoxide/issues/450), [#470](https://github.com/Byron/gitoxide/issues/470), [#691](https://github.com/Byron/gitoxide/issues/691) - -### Thanks Clippy - -<csr-read-only-do-not-edit/> - -[Clippy](https://github.com/rust-lang/rust-clippy) helped 2 times to make code idiomatic. - -### Commit Details - -<csr-read-only-do-not-edit/> - -<details><summary>view details</summary> - - * **[#450](https://github.com/Byron/gitoxide/issues/450)** - - Upgrade `bstr` to `1.0.1` ([`99905ba`](https://github.com/Byron/gitoxide/commit/99905bacace8aed42b16d43f0f04cae996cb971c)) - - `Boolean::try_from(OsString)` ([`5f675d3`](https://github.com/Byron/gitoxide/commit/5f675d387e52a75ff7bd17a38516ce9778ea6b7e)) - - Fix windows tests ([`0f11a6d`](https://github.com/Byron/gitoxide/commit/0f11a6dea937903d40833037d063bb82e224d66d)) - - Add changelog ([`c396ba1`](https://github.com/Byron/gitoxide/commit/c396ba17f3f674c3af7460534860fc0dc462d401)) - - `git-config` now uses `git-config-value`. ([`5ad2965`](https://github.com/Byron/gitoxide/commit/5ad296577d837b0699b4718fa2be3d0978c4e342)) - - Port tests over as well ([`9b28df2`](https://github.com/Byron/gitoxide/commit/9b28df22b858b6f1c9ca9b07a5a1c0cc300b50f0)) - - Copy all value code from git-config to the dedicated crate ([`edb1162`](https://github.com/Byron/gitoxide/commit/edb1162e284e343e2c575980854b8292de9c968f)) - - Add new git-config-value crate ([`f87edf2`](https://github.com/Byron/gitoxide/commit/f87edf26c1cb795142fbe95e12c0dfc1166e4233)) - * **[#470](https://github.com/Byron/gitoxide/issues/470)** - - Update changelogs prior to release ([`caa7a1b`](https://github.com/Byron/gitoxide/commit/caa7a1bdef74d7d3166a7e38127a59f5ab3cfbdd)) - * **[#691](https://github.com/Byron/gitoxide/issues/691)** - - Set `rust-version` to 1.64 ([`55066ce`](https://github.com/Byron/gitoxide/commit/55066ce5fd71209abb5d84da2998b903504584bb)) - * **Uncategorized** - - 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)) - - 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)) - - 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-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-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)) - - Rename gix-config-values to `gix-config-values` ([`df3f4b3`](https://github.com/Byron/gitoxide/commit/df3f4b3f923935b1a45e04cdaa457bd0352958da)) - - 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)) - - 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)) - - Actively discourage using `Boolean::try_from("")` explicitly. ([`4ebe2ac`](https://github.com/Byron/gitoxide/commit/4ebe2ac05dc8bef3bc1783afca3fcfdc565c2aae)) - - 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)) - - Release git-glob v0.4.2, git-config-value v0.8.2, git-lock v2.2.0, git-ref v0.19.0, git-config v0.11.0, git-discover v0.8.0, git-index v0.8.0, git-transport v0.22.0, git-protocol v0.23.0, git-worktree v0.8.0, git-repository v0.28.0, gitoxide-core v0.20.0, gitoxide v0.18.0, safety bump 9 crates ([`0c253b1`](https://github.com/Byron/gitoxide/commit/0c253b15143dcedfe4c66d64ab1ea6e097030651)) - - Prepare changelogs prior to release ([`fe5721f`](https://github.com/Byron/gitoxide/commit/fe5721f888c64c79fe9a734a9e33b94a282f8d97)) - - Merge branch 'http-config' ([`665b53e`](https://github.com/Byron/gitoxide/commit/665b53e1c2e1de65fafa28b669f58977868bbc81)) - - `Default` implementation for `Boolean` and `Integer` ([`3577aef`](https://github.com/Byron/gitoxide/commit/3577aefc68d9aec149e0a0f4192f06d6de9ff531)) - - 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)) - - Thanks clippy ([`04cfa63`](https://github.com/Byron/gitoxide/commit/04cfa635a65ae34ad6d22391f2febd2ca7eabca9)) - - Merge branch 'main' into write-sparse-index ([`70963f5`](https://github.com/Byron/gitoxide/commit/70963f5d8e3b59ce6fe8bcc1844218ac717f3390)) - - Merge branch 'main' into gix-clone ([`64f81d7`](https://github.com/Byron/gitoxide/commit/64f81d78ae75a0e5914f431bbdc385a6d40f8835)) - - Merge branch 'fix/android_build' ([`8f64ecd`](https://github.com/Byron/gitoxide/commit/8f64ecdeb5345f6c1f4adcc7948f44bf1379e823)) - - Build error on Android ([`38b92ba`](https://github.com/Byron/gitoxide/commit/38b92ba9615f9c90cfeed5bd050007168fa6df94)) - - Merge branch 'diff' ([`25a7726`](https://github.com/Byron/gitoxide/commit/25a7726377fbe400ea3c4927d04e9dec99802b7b)) - - 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)) - - Make fmt ([`535e967`](https://github.com/Byron/gitoxide/commit/535e967666c6da657ff1b7eff7c64ab27cafb182)) - - Merge branch 'filter-refs-by-spec' ([`5c05198`](https://github.com/Byron/gitoxide/commit/5c051986bd89590a9287d85d84c713d83dfab83a)) - - Release git-config-value v0.7.0 ([`21c0ab9`](https://github.com/Byron/gitoxide/commit/21c0ab9c60ee317f574633081354351b0c7e5d0e)) - - Release git-path v0.4.2, git-config-value v0.7.0 ([`c48fb31`](https://github.com/Byron/gitoxide/commit/c48fb3107d29f9a06868b0c6de40567063a656d1)) -</details> - -## 0.10.0 (2022-12-19) - -<csr-id-4ebe2ac05dc8bef3bc1783afca3fcfdc565c2aae/> - -### Other - - - <csr-id-4ebe2ac05dc8bef3bc1783afca3fcfdc565c2aae/> Actively discourage using `Boolean::try_from("")` explicitly. - Use `config.boolean(…)` instead. - -## 0.9.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.8.2 (2022-11-17) - -### New Features - - - <csr-id-3577aefc68d9aec149e0a0f4192f06d6de9ff531/> `Default` implementation for `Boolean` and `Integer` - -## 0.8.1 (2022-11-06) - -### Bug Fixes - - - <csr-id-38b92ba9615f9c90cfeed5bd050007168fa6df94/> build error on Android - -## 0.8.0 (2022-09-20) - -### New Features - - - <csr-id-5f675d387e52a75ff7bd17a38516ce9778ea6b7e/> `Boolean::try_from(OsString)` - This makes getting booleans from the environment easier. - -### Changed (BREAKING) - - - <csr-id-99905bacace8aed42b16d43f0f04cae996cb971c/> upgrade `bstr` to `1.0.1` - -## v0.7.0 (2022-08-29) - -### Changed - - - <csr-id-5ad296577d837b0699b4718fa2be3d0978c4e342/> `gix-config` now uses `gix-config-value`. - diff --git a/vendor/gix-config-value/Cargo.toml b/vendor/gix-config-value/Cargo.toml index 8eddf3fd6..cb0944958 100644 --- a/vendor/gix-config-value/Cargo.toml +++ b/vendor/gix-config-value/Cargo.toml @@ -13,8 +13,12 @@ edition = "2021" rust-version = "1.65" name = "gix-config-value" -version = "0.14.0" +version = "0.14.1" authors = ["Sebastian Thiel <sebastian.thiel@icloud.com>"] +include = [ + "src/**/*", + "LICENSE-*", +] description = "A crate of the gitoxide project providing git-config value parsing" license = "MIT OR Apache-2.0" repository = "https://github.com/Byron/gitoxide" @@ -22,10 +26,6 @@ repository = "https://github.com/Byron/gitoxide" [package.metadata.docs.rs] all-features = true features = ["document-features"] -rustdoc-args = [ - "--cfg", - "docsrs", -] [lib] doctest = false @@ -43,7 +43,7 @@ version = "0.2.0" optional = true [dependencies.gix-path] -version = "^0.10.0" +version = "^0.10.1" [dependencies.serde] version = "1.0.114" diff --git a/vendor/gix-config-value/LICENSE-MIT b/vendor/gix-config-value/LICENSE-MIT index b58e818f1..97c2fa7d8 100644 --- a/vendor/gix-config-value/LICENSE-MIT +++ b/vendor/gix-config-value/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-config-value/src/lib.rs b/vendor/gix-config-value/src/lib.rs index 5b4f3fa76..b3be069e3 100644 --- a/vendor/gix-config-value/src/lib.rs +++ b/vendor/gix-config-value/src/lib.rs @@ -2,10 +2,10 @@ //! //! ## 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, unsafe_code)] /// The error returned when any config value couldn't be instantiated due to malformed input. diff --git a/vendor/gix-config-value/tests/value/boolean.rs b/vendor/gix-config-value/tests/value/boolean.rs deleted file mode 100644 index 8fe8b43f0..000000000 --- a/vendor/gix-config-value/tests/value/boolean.rs +++ /dev/null @@ -1,42 +0,0 @@ -use std::convert::TryFrom; - -use gix_config_value::Boolean; - -use crate::b; - -#[test] -fn from_str_false() -> crate::Result { - assert!(!Boolean::try_from(b("no"))?.0); - assert!(!Boolean::try_from(b("off"))?.0); - assert!(!Boolean::try_from(b("false"))?.0); - assert!(!Boolean::try_from(b("0"))?.0); - assert!(!Boolean::try_from(b(""))?.0); - Ok(()) -} - -#[test] -fn from_str_true() -> crate::Result { - assert_eq!(Boolean::try_from(b("yes")).map(Into::into), Ok(true)); - assert_eq!(Boolean::try_from(b("on")), Ok(Boolean(true))); - assert_eq!(Boolean::try_from(b("true")), Ok(Boolean(true))); - assert!(Boolean::try_from(b("1"))?.0); - assert!(Boolean::try_from(b("+10"))?.0); - assert!(Boolean::try_from(b("-1"))?.0); - Ok(()) -} - -#[test] -fn ignores_case() { - // Random subset - for word in &["no", "yes", "on", "off", "true", "false"] { - let first: bool = Boolean::try_from(b(word)).unwrap().into(); - let second: bool = Boolean::try_from(b(&word.to_uppercase())).unwrap().into(); - assert_eq!(first, second); - } -} - -#[test] -fn from_str_err() { - assert!(Boolean::try_from(b("yesn't")).is_err()); - assert!(Boolean::try_from(b("yesno")).is_err()); -} diff --git a/vendor/gix-config-value/tests/value/color.rs b/vendor/gix-config-value/tests/value/color.rs deleted file mode 100644 index 1db7fe2e0..000000000 --- a/vendor/gix-config-value/tests/value/color.rs +++ /dev/null @@ -1,199 +0,0 @@ -mod name { - use std::str::FromStr; - - use gix_config_value::color::Name; - - #[test] - fn non_bright() { - assert_eq!(Name::from_str("normal"), Ok(Name::Normal)); - assert_eq!(Name::from_str("-1"), Ok(Name::Normal)); - assert_eq!(Name::from_str("default"), Ok(Name::Default)); - assert_eq!(Name::from_str("black"), Ok(Name::Black)); - assert_eq!(Name::from_str("red"), Ok(Name::Red)); - assert_eq!(Name::from_str("green"), Ok(Name::Green)); - assert_eq!(Name::from_str("yellow"), Ok(Name::Yellow)); - assert_eq!(Name::from_str("blue"), Ok(Name::Blue)); - assert_eq!(Name::from_str("magenta"), Ok(Name::Magenta)); - assert_eq!(Name::from_str("cyan"), Ok(Name::Cyan)); - assert_eq!(Name::from_str("white"), Ok(Name::White)); - } - - #[test] - fn bright() { - assert_eq!(Name::from_str("brightblack"), Ok(Name::BrightBlack)); - assert_eq!(Name::from_str("brightred"), Ok(Name::BrightRed)); - assert_eq!(Name::from_str("brightgreen"), Ok(Name::BrightGreen)); - assert_eq!(Name::from_str("brightyellow"), Ok(Name::BrightYellow)); - assert_eq!(Name::from_str("brightblue"), Ok(Name::BrightBlue)); - assert_eq!(Name::from_str("brightmagenta"), Ok(Name::BrightMagenta)); - assert_eq!(Name::from_str("brightcyan"), Ok(Name::BrightCyan)); - assert_eq!(Name::from_str("brightwhite"), Ok(Name::BrightWhite)); - } - - #[test] - fn ansi() { - assert_eq!(Name::from_str("255"), Ok(Name::Ansi(255))); - assert_eq!(Name::from_str("0"), Ok(Name::Ansi(0))); - } - - #[test] - fn hex() { - assert_eq!(Name::from_str("#ff0010"), Ok(Name::Rgb(255, 0, 16))); - assert_eq!(Name::from_str("#ffffff"), Ok(Name::Rgb(255, 255, 255))); - assert_eq!(Name::from_str("#000000"), Ok(Name::Rgb(0, 0, 0))); - } - - #[test] - fn invalid() { - assert!(Name::from_str("-2").is_err()); - assert!(Name::from_str("brightnormal").is_err()); - assert!(Name::from_str("brightdefault").is_err()); - assert!(Name::from_str("").is_err()); - assert!(Name::from_str("bright").is_err()); - assert!(Name::from_str("256").is_err()); - assert!(Name::from_str("#").is_err()); - assert!(Name::from_str("#fff").is_err()); - assert!(Name::from_str("#gggggg").is_err()); - } -} - -mod attribute { - use std::str::FromStr; - - use gix_config_value::color::Attribute; - - #[test] - fn non_inverted() { - assert_eq!(Attribute::from_str("reset"), Ok(Attribute::RESET)); - assert_eq!(Attribute::from_str("bold"), Ok(Attribute::BOLD)); - assert_eq!(Attribute::from_str("dim"), Ok(Attribute::DIM)); - assert_eq!(Attribute::from_str("ul"), Ok(Attribute::UL)); - assert_eq!(Attribute::from_str("blink"), Ok(Attribute::BLINK)); - assert_eq!(Attribute::from_str("reverse"), Ok(Attribute::REVERSE)); - assert_eq!(Attribute::from_str("italic"), Ok(Attribute::ITALIC)); - assert_eq!(Attribute::from_str("strike"), Ok(Attribute::STRIKE)); - } - - #[test] - fn inverted_no_dash() { - assert_eq!(Attribute::from_str("nobold"), Ok(Attribute::NO_BOLD)); - assert_eq!(Attribute::from_str("nodim"), Ok(Attribute::NO_DIM)); - assert_eq!(Attribute::from_str("noul"), Ok(Attribute::NO_UL)); - assert_eq!(Attribute::from_str("noblink"), Ok(Attribute::NO_BLINK)); - assert_eq!(Attribute::from_str("noreverse"), Ok(Attribute::NO_REVERSE)); - assert_eq!(Attribute::from_str("noitalic"), Ok(Attribute::NO_ITALIC)); - assert_eq!(Attribute::from_str("nostrike"), Ok(Attribute::NO_STRIKE)); - } - - #[test] - fn inverted_dashed() { - assert_eq!(Attribute::from_str("no-bold"), Ok(Attribute::NO_BOLD)); - assert_eq!(Attribute::from_str("no-dim"), Ok(Attribute::NO_DIM)); - assert_eq!(Attribute::from_str("no-ul"), Ok(Attribute::NO_UL)); - assert_eq!(Attribute::from_str("no-blink"), Ok(Attribute::NO_BLINK)); - assert_eq!(Attribute::from_str("no-reverse"), Ok(Attribute::NO_REVERSE)); - assert_eq!(Attribute::from_str("no-italic"), Ok(Attribute::NO_ITALIC)); - assert_eq!(Attribute::from_str("no-strike"), Ok(Attribute::NO_STRIKE)); - } - - #[test] - fn invalid() { - assert!(Attribute::from_str("no-reset").is_err()); - assert!(Attribute::from_str("noreset").is_err()); - assert!(Attribute::from_str("a").is_err()); - assert!(Attribute::from_str("no bold").is_err()); - assert!(Attribute::from_str("").is_err()); - assert!(Attribute::from_str("no").is_err()); - assert!(Attribute::from_str("no-").is_err()); - } -} - -mod from_git { - use std::convert::TryFrom; - - use bstr::BStr; - use gix_config_value::Color; - - #[test] - fn reset() { - assert_eq!(color("reset"), "reset"); - } - - #[test] - fn empty() { - assert_eq!(color(""), ""); - } - - #[test] - fn at_most_two_colors() { - assert!(try_color("red green blue").is_err()); - } - - #[test] - fn attribute_before_color_name() { - assert_eq!(color("bold red"), "red bold"); - } - - #[test] - fn color_name_before_attribute() { - assert_eq!(color("red bold"), "red bold"); - } - - #[test] - fn attribute_fg_bg() { - assert_eq!(color("ul blue red"), "blue red ul"); - } - - #[test] - fn fg_bg_attribute() { - assert_eq!(color("blue red ul"), "blue red ul"); - } - - #[test] - fn multiple_attributes() { - assert_eq!( - color("blue bold dim ul blink reverse"), - "blue bold dim ul blink reverse" - ); - } - - #[test] - fn reset_then_multiple_attributes() { - assert_eq!( - color("blue bold dim ul blink reverse reset"), - "blue bold dim ul blink reverse reset" - ); - } - - #[test] - fn long_color_spec() { - assert_eq!( - color("254 255 bold dim ul blink reverse"), - "254 255 bold dim ul blink reverse" - ); - let input = "#ffffff #ffffff bold nobold dim nodim italic noitalic ul noul blink noblink reverse noreverse strike nostrike"; - let expected = "#ffffff #ffffff bold dim italic ul blink reverse strike nodim nobold noitalic noul noblink noreverse nostrike"; - assert_eq!(color(input), expected); - } - - #[test] - fn normal_default_can_clear_backgrounds() { - assert_eq!(color("normal default"), "normal default"); - } - - #[test] - fn default_can_combine_with_attributes() { - assert_eq!( - color("default default no-reverse bold"), - "default default bold noreverse" - ); - } - - fn color<'a>(name: impl Into<&'a BStr>) -> String { - try_color(name).expect("input color is expected to be valid") - } - - fn try_color<'a>(name: impl Into<&'a BStr>) -> crate::Result<String> { - Ok(Color::try_from(name.into())?.to_string()) - } -} diff --git a/vendor/gix-config-value/tests/value/integer.rs b/vendor/gix-config-value/tests/value/integer.rs deleted file mode 100644 index 9de2ab1ca..000000000 --- a/vendor/gix-config-value/tests/value/integer.rs +++ /dev/null @@ -1,74 +0,0 @@ -use std::convert::TryFrom; - -use gix_config_value::{integer::Suffix, Integer}; - -use crate::b; - -#[test] -fn from_str_no_suffix() { - assert_eq!(Integer::try_from(b("1")).unwrap(), Integer { value: 1, suffix: None }); - - assert_eq!( - Integer::try_from(b("-1")).unwrap(), - Integer { - value: -1, - suffix: None - } - ); -} - -#[test] -fn from_str_with_suffix() { - assert_eq!( - Integer::try_from(b("1k")).unwrap(), - Integer { - value: 1, - suffix: Some(Suffix::Kibi), - } - ); - - assert_eq!( - Integer::try_from(b("1m")).unwrap(), - Integer { - value: 1, - suffix: Some(Suffix::Mebi), - } - ); - - assert_eq!( - Integer::try_from(b("1g")).unwrap(), - Integer { - value: 1, - suffix: Some(Suffix::Gibi), - } - ); -} - -#[test] -fn invalid_from_str() { - assert!(Integer::try_from(b("")).is_err()); - assert!(Integer::try_from(b("-")).is_err()); - assert!(Integer::try_from(b("k")).is_err()); - assert!(Integer::try_from(b("m")).is_err()); - assert!(Integer::try_from(b("g")).is_err()); - assert!(Integer::try_from(b("123123123123123123123123")).is_err()); - assert!(Integer::try_from(b("gg")).is_err()); -} - -#[test] -fn as_decimal() { - fn decimal(input: &str) -> Option<i64> { - Integer::try_from(b(input)).unwrap().to_decimal() - } - - assert_eq!(decimal("12"), Some(12), "works without suffix"); - assert_eq!(decimal("13k"), Some(13 * 1024), "works with kilobyte suffix"); - assert_eq!(decimal("13K"), Some(13 * 1024), "works with Kilobyte suffix"); - assert_eq!(decimal("14m"), Some(14 * 1_048_576), "works with megabyte suffix"); - assert_eq!(decimal("14M"), Some(14 * 1_048_576), "works with Megabyte suffix"); - assert_eq!(decimal("15g"), Some(15 * 1_073_741_824), "works with gigabyte suffix"); - assert_eq!(decimal("15G"), Some(15 * 1_073_741_824), "works with Gigabyte suffix"); - - assert_eq!(decimal(&format!("{}g", i64::MAX)), None, "overflow results in None"); - assert_eq!(decimal(&format!("{}g", i64::MIN)), None, "underflow results in None"); -} diff --git a/vendor/gix-config-value/tests/value/main.rs b/vendor/gix-config-value/tests/value/main.rs deleted file mode 100644 index 13a33c9d8..000000000 --- a/vendor/gix-config-value/tests/value/main.rs +++ /dev/null @@ -1,17 +0,0 @@ -use std::borrow::Cow; - -use bstr::{BStr, ByteSlice}; - -type Result<T = ()> = std::result::Result<T, Box<dyn std::error::Error>>; -fn b(s: &str) -> &bstr::BStr { - s.into() -} - -pub fn cow_str(s: &str) -> Cow<'_, BStr> { - Cow::Borrowed(s.as_bytes().as_bstr()) -} - -mod boolean; -mod color; -mod integer; -mod path; diff --git a/vendor/gix-config-value/tests/value/path.rs b/vendor/gix-config-value/tests/value/path.rs deleted file mode 100644 index 10970296d..000000000 --- a/vendor/gix-config-value/tests/value/path.rs +++ /dev/null @@ -1,129 +0,0 @@ -mod interpolate { - use std::{ - borrow::Cow, - path::{Path, PathBuf}, - }; - - use gix_config_value::path; - - use crate::{b, cow_str}; - - #[test] - fn backslash_is_not_special_and_they_are_not_escaping_anything() -> crate::Result { - for path in ["C:\\foo\\bar", "/foo/bar"] { - let actual = gix_config_value::Path::from(Cow::Borrowed(b(path))).interpolate(Default::default())?; - assert_eq!(actual, Path::new(path)); - assert!( - matches!(actual, Cow::Borrowed(_)), - "it does not unnecessarily copy values" - ); - } - Ok(()) - } - - #[test] - fn empty_path_is_error() { - assert!(matches!( - interpolate_without_context(""), - Err(path::interpolate::Error::Missing { what: "path" }) - )); - } - - #[test] - fn prefix_substitutes_git_install_dir() { - for git_install_dir in &["/tmp/git", "C:\\git"] { - for (val, expected) in &[("%(prefix)/foo/bar", "foo/bar"), ("%(prefix)/foo\\bar", "foo\\bar")] { - let expected = - std::path::PathBuf::from(format!("{}{}{}", git_install_dir, std::path::MAIN_SEPARATOR, expected)); - assert_eq!( - gix_config_value::Path::from(cow_str(val)) - .interpolate(path::interpolate::Context { - git_install_dir: Path::new(git_install_dir).into(), - ..Default::default() - }) - .unwrap(), - expected, - "prefix interpolation keeps separators as they are" - ); - } - } - } - - #[test] - fn prefix_substitution_skipped_with_dot_slash() { - let path = "./%(prefix)/foo/bar"; - let git_install_dir = "/tmp/git"; - assert_eq!( - gix_config_value::Path::from(Cow::Borrowed(b(path))) - .interpolate(path::interpolate::Context { - git_install_dir: Path::new(git_install_dir).into(), - ..Default::default() - }) - .unwrap(), - Path::new(path) - ); - } - - #[test] - fn tilde_alone_does_not_interpolate() -> crate::Result { - assert_eq!(interpolate_without_context("~")?, Path::new("~")); - Ok(()) - } - - #[test] - fn tilde_slash_substitutes_current_user() -> crate::Result { - let path = "~/user/bar"; - let home = std::env::current_dir()?; - let expected = home.join("user").join("bar"); - assert_eq!( - gix_config_value::Path::from(cow_str(path)) - .interpolate(path::interpolate::Context { - home_dir: Some(&home), - home_for_user: Some(home_for_user), - ..Default::default() - }) - .unwrap() - .as_ref(), - expected - ); - Ok(()) - } - - #[cfg(windows)] - #[test] - fn tilde_with_given_user_is_unsupported_on_windows() { - assert!(matches!( - interpolate_without_context("~baz/foo/bar"), - Err(gix_config_value::path::interpolate::Error::UserInterpolationUnsupported) - )); - } - - #[cfg(not(windows))] - #[test] - fn tilde_with_given_user() -> crate::Result { - let home = std::env::current_dir()?; - - for path_suffix in &["foo/bar", "foo\\bar", ""] { - let path = format!("~user{}{}", std::path::MAIN_SEPARATOR, path_suffix); - let expected = home.join("user").join(path_suffix); - - assert_eq!(interpolate_without_context(path)?, expected); - } - Ok(()) - } - - fn interpolate_without_context( - path: impl AsRef<str>, - ) -> Result<Cow<'static, Path>, gix_config_value::path::interpolate::Error> { - gix_config_value::Path::from(Cow::Owned(path.as_ref().to_owned().into())).interpolate( - path::interpolate::Context { - home_for_user: Some(home_for_user), - ..Default::default() - }, - ) - } - - fn home_for_user(name: &str) -> Option<PathBuf> { - std::env::current_dir().unwrap().join(name).into() - } -} |