summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Martín Nieto <carlosmn@github.com>2016-04-26 13:40:03 +0200
committerCarlos Martín Nieto <carlosmn@github.com>2016-04-26 13:40:03 +0200
commitcb2dfa46c8e12f60b20cdc80e1616c35d74c1b7e (patch)
tree7136a56fa4c9c702b4bd07a5244ff4a86b08a101
parent9068704bd81de05b892498bd9368a2c82b46e334 (diff)
parenta3e379cb4ebde8f348c5f7512c039826ae9bf586 (diff)
downloadlibgit2-cb2dfa46c8e12f60b20cdc80e1616c35d74c1b7e.tar.gz
Merge pull request #3755 from arthurschreiber/patch-9
Remove traces of `git_blob_create_fromchunks`
-rw-r--r--include/git2/blob.h41
1 files changed, 0 insertions, 41 deletions
diff --git a/include/git2/blob.h b/include/git2/blob.h
index 6377fc2a2..70204c440 100644
--- a/include/git2/blob.h
+++ b/include/git2/blob.h
@@ -150,47 +150,6 @@ GIT_EXTERN(int) git_blob_create_fromworkdir(git_oid *id, git_repository *repo, c
*/
GIT_EXTERN(int) git_blob_create_fromdisk(git_oid *id, git_repository *repo, const char *path);
-
-typedef int (*git_blob_chunk_cb)(char *content, size_t max_length, void *payload);
-
-/**
- * Write a loose blob to the Object Database from a
- * provider of chunks of data.
- *
- * If the `hintpath` parameter is filled, it will be used to determine
- * what git filters should be applied to the object before it is written
- * to the object database.
- *
- * The implementation of the callback MUST respect the following rules:
- *
- * - `content` must be filled by the callback. The maximum number of
- * bytes that the buffer can accept per call is defined by the
- * `max_length` parameter. Allocation and freeing of the buffer will
- * be taken care of by libgit2.
- *
- * - The `callback` must return the number of bytes that have been
- * written to the `content` buffer.
- *
- * - When there is no more data to stream, `callback` should return 0.
- * This will prevent it from being invoked anymore.
- *
- * - If an error occurs, the callback should return a negative value.
- * This value will be returned to the caller.
- *
- * @param id Return the id of the written blob
- * @param repo Repository where the blob will be written.
- * This repository can be bare or not.
- * @param hintpath If not NULL, will be used to select data filters
- * to apply onto the content of the blob to be created.
- * @return 0 or error code (from either libgit2 or callback function)
- */
-GIT_EXTERN(int) git_blob_create_fromchunks(
- git_oid *id,
- git_repository *repo,
- const char *hintpath,
- git_blob_chunk_cb callback,
- void *payload);
-
/**
* Create a stream to write a new blob into the object db
*