Skip to content

Commit 67c0965

Browse files
authored
Merge pull request #917 from ehuss/changelog
Add changelogs
2 parents 70d7471 + 1d07656 commit 67c0965

File tree

4 files changed

+234
-1
lines changed

4 files changed

+234
-1
lines changed

CHANGELOG.md

+94
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
# Changelog
2+
3+
## 0.16.1 - 2023-01-20
4+
[0.16.0...0.16.1](https://github.com/rust-lang/git2-rs/compare/0.16.0...0.16.1)
5+
6+
### Changed
7+
- Updated to [libgit2-sys 0.14.2+1.5.1](libgit2-sys/CHANGELOG.md#0142151---2023-01-20)
8+
9+
## 0.16.0 - 2023-01-10
10+
[0.15.0...0.16.0](https://github.com/rust-lang/git2-rs/compare/0.15.0...0.16.0)
11+
12+
### Changed
13+
- Added ability to get the SSH host key and its type.
14+
This includes an API breaking change to the `certificate_check` callback.
15+
[#909](https://github.com/rust-lang/git2-rs/pull/909)
16+
- Updated to [libgit2-sys 0.14.1+1.5.0](libgit2-sys/CHANGELOG.md#0141150---2023-01-10)
17+
18+
## 0.15.0 - 2022-07-28
19+
[0.14.4...0.15.0](https://github.com/rust-lang/git2-rs/compare/0.14.4...0.15.0)
20+
21+
### Added
22+
- Added `Repository::tag_annotation_create` binding `git_tag_annotation_create`.
23+
[#845](https://github.com/rust-lang/git2-rs/pull/845)
24+
- Added the `Email` type which represents a patch in mbox format for sending via email.
25+
Added the `EmailCreateOptions` struct to control formatting of the email.
26+
Deprecates `Diff::format_email`, use `Email::from_diff` instead.
27+
[#847](https://github.com/rust-lang/git2-rs/pull/847)
28+
- Added `ErrorCode::Owner` to map to the new `GIT_EOWNER` errors.
29+
[#839](https://github.com/rust-lang/git2-rs/pull/839)
30+
- Added `opts::set_verify_owner_validation` to set whether or not ownership validation is performed.
31+
[#839](https://github.com/rust-lang/git2-rs/pull/839)
32+
33+
### Changed
34+
- Updated to [libgit2-sys 0.14.0+1.5.0](libgit2-sys/CHANGELOG.md#0140150---2022-07-28)
35+
- Removed the `Iterator` implementation for `ConfigEntries` due to the unsound usage of the API which allowed values to be used after free.
36+
Added `ConfigEntries::next` and `ConfigEntries::for_each` for iterating over all entries in a safe manor.
37+
[#854](https://github.com/rust-lang/git2-rs/pull/854)
38+
39+
## 0.14.4 - 2022-05-19
40+
[0.14.3...0.14.4](https://github.com/rust-lang/git2-rs/compare/0.14.3...0.14.4)
41+
42+
### Added
43+
- Added `Commit::body` and `Commit::body_bytes` for retrieving the commit message body.
44+
[#835](https://github.com/rust-lang/git2-rs/pull/835)
45+
- Added `Tree::get_name_bytes` to handle non-UTF-8 entry names.
46+
[#841](https://github.com/rust-lang/git2-rs/pull/841)
47+
48+
### Changed
49+
- Updated to [libgit2-sys 0.13.4+1.4.2](libgit2-sys/CHANGELOG.md#0134142---2022-05-10)
50+
51+
## 0.14.3 - 2022-04-27
52+
[0.14.2...0.14.3](https://github.com/rust-lang/git2-rs/compare/0.14.2...0.14.3)
53+
54+
### Changed
55+
- Updated to [libgit2-sys 0.13.3+1.4.2](libgit2-sys/CHANGELOG.md#0133142---2022-04-27)
56+
57+
### Fixed
58+
- Fixed the lifetime of `Remote::create_detached`.
59+
[#825](https://github.com/rust-lang/git2-rs/pull/825)
60+
61+
## 0.14.2 - 2022-03-10
62+
[0.14.1...0.14.2](https://github.com/rust-lang/git2-rs/compare/0.14.1...0.14.2)
63+
64+
### Added
65+
- Added `Odb::exists_ext` to checks if an object database has an object, with extended flags.
66+
[#818](https://github.com/rust-lang/git2-rs/pull/818)
67+
68+
### Changed
69+
- Updated to [libgit2-sys 0.13.2+1.4.2](libgit2-sys/CHANGELOG.md#0132142---2022-03-10)
70+
71+
## 0.14.1 - 2022-02-28
72+
[0.14.0...0.14.1](https://github.com/rust-lang/git2-rs/compare/0.14.0...0.14.1)
73+
74+
### Changed
75+
- Updated to [libgit2-sys 0.13.1+1.4.2](libgit2-sys/CHANGELOG.md#0131142---2022-02-28)
76+
77+
## 0.14.0 - 2022-02-24
78+
[0.13.25...0.14.0](https://github.com/rust-lang/git2-rs/compare/0.13.25...0.14.0)
79+
80+
### Added
81+
- Added `opts::get_extensions` and `opts::set_extensions` to support git extensions.
82+
[#791](https://github.com/rust-lang/git2-rs/pull/791)
83+
- Added `PackBuilder::name` and `PackBuilder::name_bytes`.
84+
[#806](https://github.com/rust-lang/git2-rs/pull/806)
85+
- Deprecated `PackBuilder::hash`, use `PackBuilder::name` instead.
86+
- Added `FetchOptions::follow_redirects` and `PushOptions::follow_redirects`.
87+
[#806](https://github.com/rust-lang/git2-rs/pull/806)
88+
- Added `StatusOptions::rename_threshold`.
89+
[#806](https://github.com/rust-lang/git2-rs/pull/806)
90+
91+
### Changed
92+
- Updated to [libgit2-sys 0.13.0+1.4.1](libgit2-sys/CHANGELOG.md#0130141---2022-02-24)
93+
[#806](https://github.com/rust-lang/git2-rs/pull/806)
94+
[#811](https://github.com/rust-lang/git2-rs/pull/811)

CONTRIBUTING.md

+32-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ The following steps can be used to update libgit2:
99
One way is to go to the `libgit2-sys/libgit2` directory and run `git fetch origin` to download the latest updates, and then check out a specific tag (such as `git checkout v1.4.1`).
1010
2. Update all the references to the version:
1111
* Update [`libgit2-sys/build.rs`](https://github.com/rust-lang/git2-rs/blob/master/libgit2-sys/build.rs).
12-
There is a version probe (search for `cfg.atleast_version`) which should be updated.
12+
There is a version probe (search for `cfg.range_version`) which should be updated.
1313
* Update the version in
1414
[`libgit2-sys/Cargo.toml`](https://github.com/rust-lang/git2-rs/blob/master/libgit2-sys/Cargo.toml).
1515
Update the metadata portion (the part after the `+`) to match libgit2.
@@ -32,3 +32,34 @@ The following steps can be used to update libgit2:
3232
The project has recently started labeling API and ABI breaking changes with labels:
3333
<https://github.com/libgit2/libgit2/pulls?q=is%3Apr+label%3A%22api+breaking%22%2C%22abi+breaking%22+is%3Aclosed>
3434
4. Once you have everything functional, publish a PR with the updates.
35+
36+
## Release process
37+
38+
Checklist for preparing for a release:
39+
40+
- Make sure the versions have been bumped and are pointing at what is expected.
41+
- Version of `libgit2-sys`
42+
- Version of `git2`
43+
- Version of `git2-curl`
44+
- `git2`'s dependency on `libgit2-sys`
45+
- `git2-curl`'s dependency on `git2`
46+
- The libgit2 version probe in `libgit2-sys/build.rs`
47+
- Update the version in `README.md`
48+
- Check the `html_root_url` values in the source code.
49+
- Update the change logs:
50+
- [`CHANGELOG.md`](https://github.com/rust-lang/git2-rs/blob/master/CHANGELOG.md)
51+
- [`libgit2-sys/CHANGELOG.md`](https://github.com/rust-lang/git2-rs/blob/master/libgit2-sys/CHANGELOG.md)
52+
- [`git2-curl/CHANGELOG.md`](https://github.com/rust-lang/git2-rs/blob/master/git2-curl/CHANGELOG.md)
53+
54+
To publish the new release:
55+
56+
- In a fresh clone, make sure you run `git submodule update`.
57+
- For each updated package, run `cargo publish` (`libgit2-sys` then `git2` then `git2-curl`).
58+
- Set tags for each package that was update:
59+
- `git tag 0.16.1`
60+
- `git tag libgit2-sys-0.14.2+1.5.1`
61+
- `git tag git2-curl-0.17.0`
62+
- Push the tags (substitute the "origin" remote name if you are using a different name):
63+
- `git push origin 0.16.1`
64+
- `git push origin libgit2-sys-0.14.2+1.5.1`
65+
- `git push origin git2-curl-0.17.0`

git2-curl/CHANGELOG.md

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Changelog
2+
3+
## 0.17.0 - 2023-01-10
4+
[0.16.0...0.17.0](https://github.com/rust-lang/git2-rs/compare/git2-curl-0.16.0...git2-curl-0.17.0)
5+
6+
- Updated to [git2 0.16.0](../CHANGELOG.md#0160---2023-01-10)
7+
8+
## 0.16.0 - 2022-07-28
9+
[0.15.0...0.16.0](https://github.com/rust-lang/git2-rs/compare/git2-curl-0.15.0...git2-curl-0.16.0)
10+
11+
- Updated to [git2 0.15.0](../CHANGELOG.md#0150---2022-07-28)
12+
13+
## 0.15.0 - 2022-02-28
14+
[0.14.1...0.15.0](https://github.com/rust-lang/git2-rs/compare/git2-curl-0.14.1...git2-curl-0.15.0)
15+
16+
- Updated to [git2 0.14.0](../CHANGELOG.md#0140---2022-02-24)

libgit2-sys/CHANGELOG.md

+92
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
# Changelog
2+
3+
## 0.14.2+1.5.1 - 2023-01-20
4+
[0.14.1...0.14.2](https://github.com/rust-lang/git2-rs/compare/libgit2-sys-0.14.1+1.5.0...libgit2-sys-0.14.2+1.5.1)
5+
6+
### Changed
7+
- Updated the bundled libgit2 to [1.5.1](https://github.com/libgit2/libgit2/releases/tag/v1.5.1).
8+
[a233483a3952d6112653be86fb5ce65267e3d5ac](https://github.com/rust-lang/git2-rs/commit/a233483a3952d6112653be86fb5ce65267e3d5ac)
9+
- Changes: [fbea439d4b6fc91c6b619d01b85ab3b7746e4c19...42e5db98b963ae503229c63e44e06e439df50e56](https://github.com/libgit2/libgit2/compare/fbea439d4b6fc91c6b619d01b85ab3b7746e4c19...42e5db98b963ae503229c63e44e06e439df50e56):
10+
- Fixes [GHSA-8643-3wh5-rmjq](https://github.com/libgit2/libgit2/security/advisories/GHSA-8643-3wh5-rmjq) to validate SSH host keys.
11+
- The supported libgit2 system library range is 1.5.1 to less than 1.6.0 or 1.4.5 to less than 1.5.0, which should include this fix.
12+
13+
## 0.13.5+1.4.5 - 2023-01-20
14+
[0.13.4...0.13.5](https://github.com/rust-lang/git2-rs/compare/libgit2-sys-0.13.4+1.4.2...libgit2-sys-0.13.5+1.4.5)
15+
16+
### Changed
17+
- Updated the bundled libgit2 to [1.4.5](https://github.com/libgit2/libgit2/releases/tag/v1.4.5).
18+
- Changes: [2a0d0bd19b5d13e2ab7f3780e094404828cbb9a7...cd6f679af401eda1f172402006ef8265f8bd58ea](https://github.com/libgit2/libgit2/compare/2a0d0bd19b5d13e2ab7f3780e094404828cbb9a7...cd6f679af401eda1f172402006ef8265f8bd58ea):
19+
- Fixes [GHSA-8643-3wh5-rmjq](https://github.com/libgit2/libgit2/security/advisories/GHSA-8643-3wh5-rmjq) to validate SSH host keys.
20+
- The supported libgit2 system library range is 1.4.5 to less than 1.5.0.
21+
22+
## 0.14.1+1.5.0 - 2023-01-10
23+
[0.14.0...0.14.1](https://github.com/rust-lang/git2-rs/compare/libgit2-sys-0.14.0+1.5.0...libgit2-sys-0.14.1+1.5.0)
24+
25+
### Added
26+
- Added variants to `git_cert_ssh_raw_type_t`.
27+
[#909](https://github.com/rust-lang/git2-rs/pull/909)
28+
29+
## 0.14.0+1.5.0 - 2022-07-28
30+
[0.13.4...0.14.0](https://github.com/rust-lang/git2-rs/compare/libgit2-sys-0.13.4+1.4.2...libgit2-sys-0.14.0+1.5.0)
31+
32+
### Added
33+
- Added bindings for ownership validation.
34+
[#839](https://github.com/rust-lang/git2-rs/pull/839)
35+
36+
### Changed
37+
38+
- Updated the bundled libgit2 to [1.5.0](https://github.com/libgit2/libgit2/releases/tag/v1.5.0).
39+
[#839](https://github.com/rust-lang/git2-rs/pull/839)
40+
[#858](https://github.com/rust-lang/git2-rs/pull/858)
41+
- Changes: [2a0d0bd19b5d13e2ab7f3780e094404828cbb9a7...fbea439d4b6fc91c6b619d01b85ab3b7746e4c19](https://github.com/libgit2/libgit2/compare/2a0d0bd19b5d13e2ab7f3780e094404828cbb9a7...fbea439d4b6fc91c6b619d01b85ab3b7746e4c19):
42+
- The supported libgit2 system library range is 1.4.4 to less than 1.6.0.
43+
- Fixes [CVE 2022-24765](https://github.com/libgit2/libgit2/releases/tag/v1.4.3).
44+
45+
## 0.13.4+1.4.2 - 2022-05-10
46+
[0.13.3...0.13.4](https://github.com/rust-lang/git2-rs/compare/libgit2-sys-0.13.3+1.4.2...libgit2-sys-0.13.4+1.4.2)
47+
48+
### Added
49+
- Added bindings for `git_commit_body`
50+
[#835](https://github.com/rust-lang/git2-rs/pull/835)
51+
52+
## 0.13.3+1.4.2 - 2022-04-27
53+
[0.13.2...0.13.3](https://github.com/rust-lang/git2-rs/compare/libgit2-sys-0.13.2+1.4.2...libgit2-sys-0.13.3+1.4.2)
54+
55+
### Changed
56+
- Updated the bundled libgit2 to 1.5.0-alpha.
57+
[#822](https://github.com/rust-lang/git2-rs/pull/822)
58+
- Changes: [182d0d1ee933de46bf0b5a6ec269bafa77aba9a2...2a0d0bd19b5d13e2ab7f3780e094404828cbb9a7](https://github.com/libgit2/libgit2/compare/182d0d1ee933de46bf0b5a6ec269bafa77aba9a2...2a0d0bd19b5d13e2ab7f3780e094404828cbb9a7)
59+
- Changed the pkg-config probe to restrict linking against a version of a system-installed libgit2 to a version less than 1.5.0.
60+
Previously it would allow any version above 1.4.0 which could pick up an API-breaking version.
61+
[#817](https://github.com/rust-lang/git2-rs/pull/817)
62+
- When using pkg-config to locate libgit2, the system lib dirs are no longer added to the search path.
63+
[#831](https://github.com/rust-lang/git2-rs/pull/831)
64+
- When using the `zlib-ng-compat` Cargo feature, `libssh2-sys` is no longer automatically included unless you also enable the `ssh` feature.
65+
[#833](https://github.com/rust-lang/git2-rs/pull/833)
66+
67+
## 0.13.2+1.4.2 - 2022-03-10
68+
[0.13.1...0.13.2](https://github.com/rust-lang/git2-rs/compare/libgit2-sys-0.13.1+1.4.2...libgit2-sys-0.13.2+1.4.2)
69+
70+
### Added
71+
- Added bindings for `git_odb_exists_ext`.
72+
[#818](https://github.com/rust-lang/git2-rs/pull/818)
73+
74+
## 0.13.1+1.4.2 - 2022-02-28
75+
[0.13.0...0.13.1](https://github.com/rust-lang/git2-rs/compare/libgit2-sys-0.13.0+1.4.1...libgit2-sys-0.13.1+1.4.2)
76+
77+
### Changed
78+
- Updated the bundled libgit2 to [1.4.2](https://github.com/libgit2/libgit2/releases/tag/v1.4.2).
79+
[#815](https://github.com/rust-lang/git2-rs/pull/815)
80+
- Changes: [fdd15bcfca6b2ec4b7ecad1aa11a396cb15bd064...182d0d1ee933de46bf0b5a6ec269bafa77aba9a2](https://github.com/libgit2/libgit2/compare/fdd15bcfca6b2ec4b7ecad1aa11a396cb15bd064...182d0d1ee933de46bf0b5a6ec269bafa77aba9a2).
81+
82+
## 0.13.0+1.4.1 - 2022-02-24
83+
[0.12.26...0.13.0](https://github.com/rust-lang/git2-rs/compare/libgit2-sys-0.12.26+1.3.0...libgit2-sys-0.13.0+1.4.1)
84+
85+
### Changed
86+
- Changed libgit2-sys to use the presence of the `src` directory instead of `.git` to determine if it has a git submodule that needs updating.
87+
[#801](https://github.com/rust-lang/git2-rs/pull/801)
88+
- Updated the bundled libgit2 to [1.4.1](https://github.com/libgit2/libgit2/releases/tag/v1.4.1) (see also [1.4.0](https://github.com/libgit2/libgit2/releases/tag/v1.4.0))
89+
[#806](https://github.com/rust-lang/git2-rs/pull/806)
90+
[#811](https://github.com/rust-lang/git2-rs/pull/811)
91+
- Changes: [b7bad55e4bb0a285b073ba5e02b01d3f522fc95d...fdd15bcfca6b2ec4b7ecad1aa11a396cb15bd064](https://github.com/libgit2/libgit2/compare/b7bad55e4bb0a285b073ba5e02b01d3f522fc95d...fdd15bcfca6b2ec4b7ecad1aa11a396cb15bd064)
92+
- The supported libgit2 system library range is 1.4.0 or greater.

0 commit comments

Comments
 (0)