fix(deps): update rust crate gix to 0.70.0 #167
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.68.0
->0.70.0
Release Notes
GitoxideLabs/gitoxide (gix)
v0.70.0
: gix v0.70.0Compare Source
Chore
rust-version
to 1.70That way clippy will allow to use the fantastic
Option::is_some_and()
and friends.
New Features
Repository::upstream_branch_and_remote_name_for_tracking_branch()
It's a way to learn about the Remote and upstream branch which would
match the given local tracking branch.
tree::Editor|editor::Cursor::get()
to see if an entry is loaded at path.This can be useful to get a feeling for how far the tree was already made available,
even though it won't reveal if an entry was edited.
Repository::is_dirty()
now also checks for tree/index changes.This copmpletes the
is_dirty()
implementation.Repository::tree_index_status()
to see the changes between a tree and an index.It also respects
status.rename
andstatus.renameLimit
to configure rename tracking.Tree::depthfirst()
with a delegate.This allows a depth-first traversal with a delegate.
blame
plumbing crate to the top-level.For now, it doesn't come with a simplified
gix
API though.Bug Fixes
Repository::status()
detects files added to the index in an unborn repository.Previously it wouldn't show them.
Respository::status()
iterator won't fail in unborn directories.worktrees of submodules now know their correct worktree
Previously they would use a very incorrect worktree which would cause
the status to be calculated very wrongly.
status-iterator won't swallow legitimate modification during 'racy-git'.
When a modification is marked as being racy, then previously the iterator would have
kept the whole modification even though it should just have tracked the single change.
This made the legitimate modification disappear.
write_blob_stream()
does not needSeek
trait anymore.Internally, it has to turn it into a buffer so it's not needed anymore.
It also counteracts the idea of using a stream with arbitrarily big files.
Submodule::status()
now konws about tree-index changes as well.This completes the status implementation.
remove unused fetch-error variants
Note that it's a breaking change, but it's on top of a previous breaking change
so folks would already have to update explicitly.
Other
Repository::worktrees()
lists linked worktrees.Excluding the main worktree which isn't always present.
New Features (BREAKING)
add
status::Platform::into_iter()
for obtaining a complete status.Note that it is still possible to disable the head-index status.
Types moved around, effectivey removing the
iter::
module for mostmore general types, i.e. those that are quite genericlally useful in
a status.
Bug Fixes (BREAKING)
config::Snapshot
access now uses the newKey
trait.That way one can officially use "section.name" strings or
&Section::NAME
.Commit Statistics
Thanks Clippy
Clippy helped 1 time to make code idiomatic.
Commit Details
view details
Repository::status()
detects files added to the index in an unborn repository. (cd8fabf
)1f6390c
)90e08f1
)fe33fa7
)4c8200f
)47e44c5
)Respository::status()
iterator won't fail in unborn directories. (84019cb
)34fa6bb
)gix-status
(25d480c
)e4fb21e
)dbf079f
)af8f201
)Repository::upstream_branch_and_remote_name_for_tracking_branch()
(da0e1c7
)gix-refspec
(6d7dd9b
)7ec21bb
)rust-version
to 1.70 (17835bc
)Repository::worktrees()
lists linked worktrees. (9db2160
)bc02284
)1ca480a
)9193b05
)8d84818
)5b6e5c8
)af704f5
)tree::Editor|editor::Cursor::get()
to see if an entry is loaded at path. (3b53982
)3bbd1f7
)write_blob_stream()
does not needSeek
trait anymore. (a03bde5
)0ab4f64
)Submodule::status()
now konws about tree-index changes as well. (a987e68
)status::Platform::into_iter()
for obtaining a complete status. (801689b
)config::Snapshot
access now uses the newKey
trait. (a6f397f
)Repository::is_dirty()
now also checks for tree/index changes. (8ae9e57
)Repository::tree_index_status()
to see the changes between a tree and an index. (83f3d93
)Tree::depthfirst()
with a delegate. (592e250
)gix-traverse
(1de4e70
)6ed9976
)blame
plumbing crate to the top-level. (25efbfb
)7659a65
)3fb0c18
)51a4301
)d22937f
)v0.69.1
Compare Source
v0.69.0
: gix v0.69.0Compare Source
Changed
Adjust gix::dirwalk::Options::{X,set_X} parameter names
This adjusts the names of parameters to
X
andset_X
methods ofgix::dirwalk::Options
(whereX
is an option name) to use asystematic naming convention:
X
, theX
andset_X
methods now alwayshave the same name of the parameter that specifies a value for an
option.
New Features
merge::tree::TreeFavor
similar to*::FileFavor
.That way it's possible to control how tree-conflicts should be auto-resolved.
Bug Fixes
Need to use absolute timestamps as it's impossible to control the system time.
Id
.This makes these types easier to use as it's enough to pass a wrapped type
to perform more actions on the underlying repository.
New Features (BREAKING)
move all possible code from
gix
togix-protocol
.For now, just move the code down and immediately re-integrate in
gix
to be able to use its tests to validate it.
This is a breaking change as some types move and change the layout.
Add
gix-shallow
crate and use it fromgix
andgix-protocol
That way it's easier to reuse shallow-handling code from plumbing crates.
Note that this is a breaking change as
gix-protocol
now uses thegix-shallow::Update
type, which doesn't implement a formerly public
from_line()
method anymore.Now it is available as
fetch::response::shallow_update_from_line()
.Bug Fixes (BREAKING)
symlinks_to_directories_are_ignored_like_directories by value
The methods of
gix::dirwalk::Options
are paired, where for eachoption
X
ofOptions
, a method named likeX
takes and returnsself
by value, and a methodset_X
takes and returnsself
bymutable reference.
But in
symlinks_to_directories_are_ignored_like_directories
, bothtook
self
by mutable reference. This fixes that. The effect ofthis fix is to allow building
Options
with a call to that methodas the last factory method call (and using it where
Options
isaccepted but
&mut Options
is not).Most code that consumes the crate should be unaffected, but:
a call last should be able to be improved.
Commit Statistics
Commit Details
view details
c1ba571
)7ea8582
)df5cead
)14c3744
)cbdbb8a
)9662bc1
)d0df20a
)ca54b8c
)gix-protocol
(41b6571
)a542775
)gix-protocol
(25b8480
)ddeb97f
)gix
andgix-protocol
(fcb21a4
)gix
togix-protocol
. (e59fc09
)gix-shallow
crate and use it fromgix
andgix-protocol
(6367c7d
)cd9060a
)c0f4da5
)ea8b95f
)f8ba4b9
)regex_matches
partial suppressions (f4b4bf0
)520c832
)gix-diff
(960773e
)gix-merge
(aaeb427
)bd905a6
)Id
. (efc71fd
)gix
(b2b8181
)merge::tree::TreeFavor
similar to*::FileFavor
. (e17b3a9
)gix-merge
(3228de6
)e8b3b41
)Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.