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
/// A git pipeline for transforming data *to-git* and *to-worktree*, based
@@ -133,7 +152,7 @@ impl Pipeline<'_> {
133
152
/// Convert a `src` stream (to be found at `rela_path`, a repo-relative path) to a representation suitable for storage in `git`
134
153
/// by using all attributes at `rela_path` and configuration of the repository to know exactly which filters apply.
135
154
/// `index` is used in particularly rare cases where the CRLF filter in auto-mode tries to determine whether to apply itself,
136
-
/// and it should match the state used when [instantiating this instance][Self::new()].
155
+
/// and it should match the state used when [instantiating this instance](Self::new()).
137
156
/// Note that the return-type implements [`std::io::Read`].
138
157
pubfnconvert_to_git<R>(
139
158
&mutself,
@@ -187,6 +206,65 @@ impl Pipeline<'_> {
187
206
)?)
188
207
}
189
208
209
+
/// 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.
210
+
///
211
+
/// `index` is used in particularly rare cases where the CRLF filter in auto-mode tries to determine whether to apply itself,
212
+
/// and it should match the state used when [instantiating this instance](Self::new()).
213
+
///
214
+
/// Return `Ok(None)` the file didn't exist in the worktree, or if it was of an untrackable type.
0 commit comments