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
@@ -70,7 +89,8 @@ pub mod pipeline {
70
89
pubstructPipeline<'repo>{
71
90
inner: gix_filter::Pipeline,
72
91
cache: gix_worktree::Stack,
73
-
repo:&'repoRepository,
92
+
/// The repository this pipeline is associated with.
93
+
pubrepo:&'repoRepository,
74
94
}
75
95
76
96
/// Lifecycle
@@ -132,7 +152,7 @@ impl Pipeline<'_> {
132
152
/// Convert a `src` stream (to be found at `rela_path`, a repo-relative path) to a representation suitable for storage in `git`
133
153
/// by using all attributes at `rela_path` and configuration of the repository to know exactly which filters apply.
134
154
/// `index` is used in particularly rare cases where the CRLF filter in auto-mode tries to determine whether to apply itself,
135
-
/// 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()).
136
156
/// Note that the return-type implements [`std::io::Read`].
137
157
pubfnconvert_to_git<R>(
138
158
&mutself,
@@ -186,6 +206,65 @@ impl Pipeline<'_> {
186
206
)?)
187
207
}
188
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