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
d23ce187
Commit
d23ce187
authored
Jan 22, 2018
by
Adrián Medraño Calvo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
odb: export mempack backend
Fixes #4492, #4496.
parent
45f58409
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
include/git2/sys/mempack.h
+5
-4
src/odb_mempack.c
+1
-0
No files found.
include/git2/sys/mempack.h
View file @
d23ce187
...
...
@@ -11,6 +11,7 @@
#include "git2/types.h"
#include "git2/oid.h"
#include "git2/odb.h"
#include "git2/buffer.h"
/**
* @file git2/sys/mempack.h
...
...
@@ -38,10 +39,10 @@ GIT_BEGIN_DECL
* Subsequent reads will also be served from the in-memory store
* to ensure consistency, until the memory store is dumped.
*
* @param out Poiter where to store the ODB backend
* @param out Poi
n
ter where to store the ODB backend
* @return 0 on success; error code otherwise
*/
int
git_mempack_new
(
git_odb_backend
**
out
);
GIT_EXTERN
(
int
)
git_mempack_new
(
git_odb_backend
**
out
);
/**
* Dump all the queued in-memory writes to a packfile.
...
...
@@ -64,7 +65,7 @@ int git_mempack_new(git_odb_backend **out);
* @param backend The mempack backend
* @return 0 on success; error code otherwise
*/
int
git_mempack_dump
(
git_buf
*
pack
,
git_repository
*
repo
,
git_odb_backend
*
backend
);
GIT_EXTERN
(
int
)
git_mempack_dump
(
git_buf
*
pack
,
git_repository
*
repo
,
git_odb_backend
*
backend
);
/**
* Reset the memory packer by clearing all the queued objects.
...
...
@@ -78,7 +79,7 @@ int git_mempack_dump(git_buf *pack, git_repository *repo, git_odb_backend *backe
*
* @param backend The mempack backend
*/
void
git_mempack_reset
(
git_odb_backend
*
backend
);
GIT_EXTERN
(
void
)
git_mempack_reset
(
git_odb_backend
*
backend
);
GIT_END_DECL
...
...
src/odb_mempack.c
View file @
d23ce187
...
...
@@ -9,6 +9,7 @@
#include "git2/object.h"
#include "git2/sys/odb_backend.h"
#include "git2/sys/mempack.h"
#include "fileops.h"
#include "hash.h"
#include "odb.h"
...
...
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