This release contains a complete rewrite of the internal url parsing logic, the public interface stays mostly the same however. Gitoxide will now be
more correct, interpreting more urls the same way Git does. Improvements include the added support for ssh aliases (github:byron/gitoxide
has previously
been parsed as local path), adjustments around the interpretation of colons in file names (previously we disallowed colons that were not followed up
with a slash character) and some smaller changes that bring the interpretation of file urls more in line with Git's implementation. Additionally, the
error types have been adjusted to print a more comprehensive message by default, making sure they stay helpful even when bubbled up through multiple abstraction
layers.
There are still many (edge) cases in Git's url parsing implementation which are not handled correctly by Gitoxide. If you notice any such deviation please
open a new issue to help us making Gitoxide even more correct.
Other
- inform about the absence of strict hash verification and strict object creation.
Those are present ingit2
and enabled by default, andgitoxde
definitely
wants to do the same at some point.
New Features
-
add
Repository::head_tree()
to more easily obtain the current tree. -
Add
Repository::has_object()
as a high-level alternative.
Previously, one would have to callrepo.objects.contains()
, which
is fine, but this method is necessary for symmetry of the API
and one shouldn't have to drop down a level to do this.This method also knows empty trees as special case.
-
add
Object::try_into_blob()
andinto_blob()
andRepository::empty_blob()
This way it's easier to assert that an object is actually a blob. -
add
Repository::index_or_empty()
.
This is useful if a missing index should mean it's empty.
Commit Statistics
- 14 commits contributed to the release over the course of 16 calendar days.
- 17 days passed between releases.
- 5 commits were understood as conventional.
- 0 issues like '(#ID)' were seen in commit messages
Thanks Clippy
Clippy helped 1 time to make code idiomatic.
Commit Details
view details
- Uncategorized
- Release gix-hash v0.13.1, gix-features v0.36.0, gix-actor v0.28.0, gix-object v0.38.0, gix-glob v0.14.0, gix-attributes v0.20.0, gix-command v0.2.10, gix-filter v0.6.0, gix-fs v0.8.0, gix-commitgraph v0.22.0, gix-revwalk v0.9.0, gix-traverse v0.34.0, gix-worktree-stream v0.6.0, gix-archive v0.6.0, gix-tempfile v11.0.0, gix-lock v11.0.0, gix-ref v0.38.0, gix-config v0.31.0, gix-url v0.25.0, gix-credentials v0.21.0, gix-diff v0.37.0, gix-discover v0.26.0, gix-ignore v0.9.0, gix-index v0.26.0, gix-mailmap v0.20.0, gix-negotiate v0.9.0, gix-pack v0.44.0, gix-odb v0.54.0, gix-pathspec v0.4.0, gix-packetline v0.16.7, gix-transport v0.37.0, gix-protocol v0.41.0, gix-revision v0.23.0, gix-refspec v0.19.0, gix-worktree v0.27.0, gix-status v0.2.0, gix-submodule v0.5.0, gix-worktree-state v0.4.0, gix v0.55.0, safety bump 37 crates (68e5432)
- Prepare changelogs prior to release (1347a54)
- Merge branch 'improvements' (429e7b2)
- Inform about the absence of strict hash verification and strict object creation. (f478a37)
- Add
Repository::head_tree()
to more easily obtain the current tree. (c79a7da) - Add
Repository::has_object()
as a high-level alternative. (787a9aa) - Add
Object::try_into_blob()
andinto_blob()
andRepository::empty_blob()
(3cec935) - Thanks clippy (345712d)
- Merge branch 'reset' (b842691)
- Trust Ctime again (f929d42)
- Add
Repository::index_or_empty()
. (7d9ecdd) - Adapt to changes in
gix-status
(54fb7c2) - Merge branch 'gix-url-parse-rewrite' (a12e4a8)
- Update changelogs (4349353)