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
0d716905
Commit
0d716905
authored
Jan 27, 2017
by
Patrick Steinhardt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oidmap: remove GIT__USE_OIDMAP macro
parent
659f5d07
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
7 additions
and
25 deletions
+7
-25
src/cache.c
+0
-2
src/describe.c
+0
-2
src/indexer.c
+0
-2
src/odb_mempack.c
+0
-2
src/oidmap.c
+7
-0
src/oidmap.h
+0
-10
src/pack-objects.c
+0
-2
src/pack.c
+0
-1
src/revwalk.c
+0
-2
tests/core/oidmap.c
+0
-2
No files found.
src/cache.c
View file @
0d716905
...
...
@@ -15,8 +15,6 @@
#include "object.h"
#include "git2/oid.h"
GIT__USE_OIDMAP
bool
git_cache__enabled
=
true
;
ssize_t
git_cache__max_storage
=
(
256
*
1024
*
1024
);
git_atomic_ssize
git_cache__current_storage
=
{
0
};
...
...
src/describe.c
View file @
0d716905
...
...
@@ -19,8 +19,6 @@
#include "vector.h"
#include "repository.h"
GIT__USE_OIDMAP
/* Ported from https://github.com/git/git/blob/89dde7882f71f846ccd0359756d27bebc31108de/builtin/describe.c */
struct
commit_name
{
...
...
src/indexer.c
View file @
0d716905
...
...
@@ -18,8 +18,6 @@
#include "oidmap.h"
#include "zstream.h"
GIT__USE_OIDMAP
extern
git_mutex
git__mwindow_mutex
;
#define UINT31_MAX (0x7FFFFFFF)
...
...
src/odb_mempack.c
View file @
0d716905
...
...
@@ -18,8 +18,6 @@
#include "git2/types.h"
#include "git2/pack.h"
GIT__USE_OIDMAP
struct
memobject
{
git_oid
oid
;
size_t
len
;
...
...
src/oidmap.c
View file @
0d716905
...
...
@@ -7,6 +7,13 @@
#include "oidmap.h"
GIT_INLINE
(
khint_t
)
git_oidmap_hash
(
const
git_oid
*
oid
)
{
khint_t
h
;
memcpy
(
&
h
,
oid
,
sizeof
(
khint_t
));
return
h
;
}
__KHASH_IMPL
(
oid
,
static
kh_inline
,
const
git_oid
*
,
void
*
,
1
,
git_oidmap_hash
,
git_oid_equal
)
git_oidmap
*
git_oidmap_alloc
()
...
...
src/oidmap.h
View file @
0d716905
...
...
@@ -20,16 +20,6 @@
__KHASH_TYPE
(
oid
,
const
git_oid
*
,
void
*
)
typedef
khash_t
(
oid
)
git_oidmap
;
GIT_INLINE
(
khint_t
)
git_oidmap_hash
(
const
git_oid
*
oid
)
{
khint_t
h
;
memcpy
(
&
h
,
oid
,
sizeof
(
khint_t
));
return
h
;
}
#define GIT__USE_OIDMAP \
__KHASH_IMPL(oid, static kh_inline, const git_oid *, void *, 1, git_oidmap_hash, git_oid_equal)
git_oidmap
*
git_oidmap_alloc
(
void
);
#define git_oidmap_free(h) git_oidmap__free(h); (h) = NULL
void
git_oidmap__free
(
git_oidmap
*
map
);
...
...
src/pack-objects.c
View file @
0d716905
...
...
@@ -41,8 +41,6 @@ struct pack_write_context {
git_transfer_progress
*
stats
;
};
GIT__USE_OIDMAP
#ifdef GIT_THREADS
#define GIT_PACKBUILDER__MUTEX_OP(pb, mtx, op) do { \
...
...
src/pack.c
View file @
0d716905
...
...
@@ -17,7 +17,6 @@
#include <zlib.h>
GIT__USE_OFFMAP
GIT__USE_OIDMAP
static
int
packfile_open
(
struct
git_pack_file
*
p
);
static
git_off_t
nth_packed_object_offset
(
const
struct
git_pack_file
*
p
,
uint32_t
n
);
...
...
src/revwalk.c
View file @
0d716905
...
...
@@ -15,8 +15,6 @@
#include "merge.h"
#include "vector.h"
GIT__USE_OIDMAP
git_commit_list_node
*
git_revwalk__commit_lookup
(
git_revwalk
*
walk
,
const
git_oid
*
oid
)
{
...
...
tests/core/oidmap.c
View file @
0d716905
#include "clar_libgit2.h"
#include "oidmap.h"
GIT__USE_OIDMAP
typedef
struct
{
git_oid
oid
;
size_t
extra
;
...
...
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