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
220d6f8a
Commit
220d6f8a
authored
Sep 11, 2015
by
Edward Thomson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mempack: expose clear function
parent
707f6537
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
src/odb_mempack.c
+1
-4
src/oidmap.h
+2
-0
No files found.
src/odb_mempack.c
View file @
220d6f8a
...
@@ -155,17 +155,14 @@ void git_mempack_reset(git_odb_backend *_backend)
...
@@ -155,17 +155,14 @@ void git_mempack_reset(git_odb_backend *_backend)
git_array_clear
(
db
->
commits
);
git_array_clear
(
db
->
commits
);
git_oidmap_free
(
db
->
objects
);
git_oidmap_clear
(
db
->
objects
);
db
->
objects
=
git_oidmap_alloc
();
}
}
static
void
impl__free
(
git_odb_backend
*
_backend
)
static
void
impl__free
(
git_odb_backend
*
_backend
)
{
{
struct
memory_packer_db
*
db
=
(
struct
memory_packer_db
*
)
_backend
;
struct
memory_packer_db
*
db
=
(
struct
memory_packer_db
*
)
_backend
;
git_mempack_reset
(
db
);
git_oidmap_free
(
db
->
objects
);
git_oidmap_free
(
db
->
objects
);
git__free
(
db
);
git__free
(
db
);
}
}
...
...
src/oidmap.h
View file @
220d6f8a
...
@@ -49,4 +49,6 @@ GIT_INLINE(khint_t) git_oidmap_hash(const git_oid *oid)
...
@@ -49,4 +49,6 @@ GIT_INLINE(khint_t) git_oidmap_hash(const git_oid *oid)
#define git_oidmap_size(h) kh_size(h)
#define git_oidmap_size(h) kh_size(h)
#define git_oidmap_clear(h) kh_clear(oid, h)
#endif
#endif
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