You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: gix/src/filter.rs
+12Lines changed: 12 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,7 @@ use std::borrow::Cow;
4
4
pubuse gix_filter as plumbing;
5
5
use gix_object::Find;
6
6
7
+
usecrate::prelude::ObjectIdExt;
7
8
usecrate::{
8
9
bstr::BStr,
9
10
config::{
@@ -207,6 +208,9 @@ impl Pipeline<'_> {
207
208
}
208
209
209
210
/// Add the worktree file at `rela_path` to the object database and return its `(id, entry, symlink_metadata)` for use in a tree or in the index, for instance.
211
+
/// If `rela_path` is a directory *and* is a repository with its `HEAD` pointing to a commit, it will also be provided with the appropriate kind.
212
+
/// Note that this can easily lead to embedded repositories as no submodule-crosscheck is performed. Otherwise, unreadable repositories or directories
213
+
/// are ignored with `None` as return value.
210
214
///
211
215
/// `index` is used in particularly rare cases where the CRLF filter in auto-mode tries to determine whether to apply itself,
212
216
/// and it should match the state used when [instantiating this instance](Self::new()).
0 commit comments