# Changelog
## Unreleased
[0.21.0...main](https://github.com/rust-lang/git2-rs/compare/git2-0.21.0...main)
### Added
- Added `Config::create_from_str()` for building an in-memory configuration from a string.
[#1249](https://github.com/rust-lang/git2-rs/pull/1249)
- `Branch` now implements `PartialEq`, `Eq`, `PartialOrd`, and `Ord`,
comparing the underlying `Reference`s.
[#1234](https://github.com/rust-lang/git2-rs/pull/1234)
- Added `DiffDelta::similarity()`.
[#1285](https://github.com/rust-lang/git2-rs/pull/1285)
- Implemented `Default` for `ApplyOptions`, `CherrypickOptions`, `DiffPatchidOptions`,
`RepositoryInitOptions`, `RevertOptions`, `WorktreeAddOptions`, and `WorktreePruneOptions`.
[#1291](https://github.com/rust-lang/git2-rs/pull/1291)
- Added `is_empty()` to `MessageTrailersStrs`, `MessageTrailersBytes`, `OdbObject`, and `Rebase`.
[#1291](https://github.com/rust-lang/git2-rs/pull/1291)
### Changed
- ❗ `Branch::name()` now returns `Result<&str, Error>` instead of `Result