@@ -137,7 +137,13 @@ GIT_EXTERN(int) git_filter_list_apply_to_data(
137
137
git_buf * in );
138
138
139
139
/**
140
- * Apply filter list to the contents of a file on disk
140
+ * Apply a filter list to the contents of a file on disk
141
+ *
142
+ * @param out buffer into which to store the filtered file
143
+ * @param filters the list of filters to apply
144
+ * @param repo the repository in which to perform the filtering
145
+ * @param path the path of the file to filter, a relative path will be
146
+ * taken as relative to the workdir
141
147
*/
142
148
GIT_EXTERN (int ) git_filter_list_apply_to_file (
143
149
git_buf * out ,
@@ -146,24 +152,51 @@ GIT_EXTERN(int) git_filter_list_apply_to_file(
146
152
const char * path );
147
153
148
154
/**
149
- * Apply filter list to the contents of a blob
155
+ * Apply a filter list to the contents of a blob
156
+ *
157
+ * @param out buffer into which to store the filtered file
158
+ * @param filters the list of filters to apply
159
+ * @param blob the blob to filter
150
160
*/
151
161
GIT_EXTERN (int ) git_filter_list_apply_to_blob (
152
162
git_buf * out ,
153
163
git_filter_list * filters ,
154
164
git_blob * blob );
155
165
166
+ /**
167
+ * Apply a filter list to an arbitrary buffer as a stream
168
+ *
169
+ * @param filters the list of filters to apply
170
+ * @param data the buffer to filter
171
+ * @param target the stream into which the data will be written
172
+ */
156
173
GIT_EXTERN (int ) git_filter_list_stream_data (
157
174
git_filter_list * filters ,
158
175
git_buf * data ,
159
176
git_writestream * target );
160
177
178
+ /**
179
+ * Apply a filter list to a file as a stream
180
+ *
181
+ * @param filters the list of filters to apply
182
+ * @param repo the repository in which to perform the filtering
183
+ * @param path the path of the file to filter, a relative path will be
184
+ * taken as relative to the workdir
185
+ * @param target the stream into which the data will be written
186
+ */
161
187
GIT_EXTERN (int ) git_filter_list_stream_file (
162
188
git_filter_list * filters ,
163
189
git_repository * repo ,
164
190
const char * path ,
165
191
git_writestream * target );
166
192
193
+ /**
194
+ * Apply a filter list to a blob as a stream
195
+ *
196
+ * @param filters the list of filters to apply
197
+ * @param blob the blob to filter
198
+ * @param target the stream into which the data will be written
199
+ */
167
200
GIT_EXTERN (int ) git_filter_list_stream_blob (
168
201
git_filter_list * filters ,
169
202
git_blob * blob ,
0 commit comments