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
049dbf42
Commit
049dbf42
authored
Sep 12, 2015
by
Carlos Martín Nieto
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3421 from ethomson/mempack-fix
Mempack fix
parents
6c21211c
220d6f8a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
src/odb_mempack.c
+6
-2
src/oidmap.h
+2
-0
No files found.
src/odb_mempack.c
View file @
049dbf42
...
@@ -154,12 +154,16 @@ void git_mempack_reset(git_odb_backend *_backend)
...
@@ -154,12 +154,16 @@ void git_mempack_reset(git_odb_backend *_backend)
});
});
git_array_clear
(
db
->
commits
);
git_array_clear
(
db
->
commits
);
git_oidmap_clear
(
db
->
objects
);
}
}
static
void
impl__free
(
git_odb_backend
*
_backend
)
static
void
impl__free
(
git_odb_backend
*
_backend
)
{
{
git_mempack_reset
(
_backend
);
struct
memory_packer_db
*
db
=
(
struct
memory_packer_db
*
)
_backend
;
git__free
(
_backend
);
git_oidmap_free
(
db
->
objects
);
git__free
(
db
);
}
}
int
git_mempack_new
(
git_odb_backend
**
out
)
int
git_mempack_new
(
git_odb_backend
**
out
)
...
...
src/oidmap.h
View file @
049dbf42
...
@@ -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