Skip to content

Commit a3e379c

Browse files
Remove traces of git_blob_create_fromchunks
1 parent 9068704 commit a3e379c

File tree

1 file changed

+0
-41
lines changed

1 file changed

+0
-41
lines changed

include/git2/blob.h

Lines changed: 0 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -150,47 +150,6 @@ GIT_EXTERN(int) git_blob_create_fromworkdir(git_oid *id, git_repository *repo, c
150150
*/
151151
GIT_EXTERN(int) git_blob_create_fromdisk(git_oid *id, git_repository *repo, const char *path);
152152

153-
154-
typedef int (*git_blob_chunk_cb)(char *content, size_t max_length, void *payload);
155-
156-
/**
157-
* Write a loose blob to the Object Database from a
158-
* provider of chunks of data.
159-
*
160-
* If the `hintpath` parameter is filled, it will be used to determine
161-
* what git filters should be applied to the object before it is written
162-
* to the object database.
163-
*
164-
* The implementation of the callback MUST respect the following rules:
165-
*
166-
* - `content` must be filled by the callback. The maximum number of
167-
* bytes that the buffer can accept per call is defined by the
168-
* `max_length` parameter. Allocation and freeing of the buffer will
169-
* be taken care of by libgit2.
170-
*
171-
* - The `callback` must return the number of bytes that have been
172-
* written to the `content` buffer.
173-
*
174-
* - When there is no more data to stream, `callback` should return 0.
175-
* This will prevent it from being invoked anymore.
176-
*
177-
* - If an error occurs, the callback should return a negative value.
178-
* This value will be returned to the caller.
179-
*
180-
* @param id Return the id of the written blob
181-
* @param repo Repository where the blob will be written.
182-
* This repository can be bare or not.
183-
* @param hintpath If not NULL, will be used to select data filters
184-
* to apply onto the content of the blob to be created.
185-
* @return 0 or error code (from either libgit2 or callback function)
186-
*/
187-
GIT_EXTERN(int) git_blob_create_fromchunks(
188-
git_oid *id,
189-
git_repository *repo,
190-
const char *hintpath,
191-
git_blob_chunk_cb callback,
192-
void *payload);
193-
194153
/**
195154
* Create a stream to write a new blob into the object db
196155
*

0 commit comments

Comments
 (0)