diff --git a/Cargo.lock b/Cargo.lock index 7d574a99c88..b593fa99e29 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2284,7 +2284,6 @@ dependencies = [ "gix-index 0.26.0", "gix-object 0.38.0", "gix-path 0.10.0", - "gix-pathspec", "gix-worktree 0.27.0", "thiserror", ] diff --git a/gix-status/Cargo.toml b/gix-status/Cargo.toml index ea3263d0f35..0f7d58ddd59 100644 --- a/gix-status/Cargo.toml +++ b/gix-status/Cargo.toml @@ -20,11 +20,9 @@ gix-hash = { version = "^0.13.1", path = "../gix-hash" } gix-object = { version = "^0.38.0", path = "../gix-object" } gix-path = { version = "^0.10.0", path = "../gix-path" } gix-features = { version = "^0.36.0", path = "../gix-features" } -gix-pathspec = { version = "^0.4.0", path = "../gix-pathspec" } gix-filter = { version = "^0.6.0", path = "../gix-filter" } gix-worktree = { version = "^0.27.0", path = "../gix-worktree", default-features = false, features = ["attributes"] } thiserror = "1.0.26" filetime = "0.2.15" bstr = { version = "1.3.0", default-features = false } - diff --git a/gix-status/src/index_as_worktree/function.rs b/gix-status/src/index_as_worktree/function.rs index 82b50593091..d14b2b7234d 100644 --- a/gix-status/src/index_as_worktree/function.rs +++ b/gix-status/src/index_as_worktree/function.rs @@ -25,9 +25,11 @@ use crate::{ /// `submodule` which can take a look at submodules in detail to produce status information (BASE version if its conflicting). /// `options` are used to configure the operation. /// -/// Note that `index` may require changes to be up-to-date with the working tree and avoid expensive computations by updating respective entries -/// with stat information from the worktree, and its timestamp is adjusted to the current time for which it will be considered fresh -/// as long as it is included which depends on `pathspec`. All this is delegated to the caller. +/// Note that `index` may require changes to be up-to-date with the working tree and avoid expensive computations by updating +/// respective entries with stat information from the worktree, and its timestamp is adjusted to the current time for which it +/// will be considered fresh. All changes that would be applied to the index are delegated to the caller, which receives these +/// as [`EntryStatus`]. +/// The `pathspec` is used to determine which index entries to check for status in the first place. /// /// `should_interrupt` can be used to stop all processing. /// `filter` is used to convert worktree files back to their internal git representation. For this to be correct,