Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
a3e379cb
Commit
a3e379cb
authored
Apr 26, 2016
by
Arthur Schreiber
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove traces of `git_blob_create_fromchunks`
parent
9068704b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
41 deletions
+0
-41
include/git2/blob.h
+0
-41
No files found.
include/git2/blob.h
View file @
a3e379cb
...
...
@@ -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
*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment