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
437ba9ad
Commit
437ba9ad
authored
Feb 16, 2015
by
Carlos Martín Nieto
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2909 from stewid/remove_extra_semicolon
Remove extra semicolon outside of a function
parents
a291790a
c8e02b87
Show whitespace changes
Inline
Side-by-side
Showing
22 changed files
with
24 additions
and
24 deletions
+24
-24
src/attr.c
+1
-1
src/attrcache.c
+1
-1
src/checkout.c
+1
-1
src/commit.c
+1
-1
src/config_file.c
+1
-1
src/diff_driver.c
+1
-1
src/fileops.c
+1
-1
src/mwindow.c
+1
-1
src/odb_mempack.c
+1
-1
src/offmap.h
+2
-2
src/oidmap.h
+1
-1
src/pack.h
+2
-2
src/refdb_fs.c
+1
-1
src/refs.c
+1
-1
src/revwalk.h
+1
-1
src/sortedcache.c
+1
-1
src/strmap.h
+1
-1
src/submodule.c
+1
-1
src/transaction.c
+1
-1
src/tree.c
+1
-1
tests/core/oidmap.c
+1
-1
tests/core/strmap.c
+1
-1
No files found.
src/attr.c
View file @
437ba9ad
...
...
@@ -7,7 +7,7 @@
#include "git2/oid.h"
#include <ctype.h>
GIT__USE_STRMAP
;
GIT__USE_STRMAP
const
char
*
git_attr__true
=
"[internal]__TRUE__"
;
const
char
*
git_attr__false
=
"[internal]__FALSE__"
;
...
...
src/attrcache.c
View file @
437ba9ad
...
...
@@ -5,7 +5,7 @@
#include "sysdir.h"
#include "ignore.h"
GIT__USE_STRMAP
;
GIT__USE_STRMAP
GIT_INLINE
(
int
)
attr_cache_lock
(
git_attr_cache
*
cache
)
{
...
...
src/checkout.c
View file @
437ba9ad
...
...
@@ -32,7 +32,7 @@
#include "pool.h"
#include "strmap.h"
GIT__USE_STRMAP
;
GIT__USE_STRMAP
/* See docs/checkout-internals.md for more information */
...
...
src/commit.c
View file @
437ba9ad
...
...
@@ -400,7 +400,7 @@ GIT_COMMIT_GETTER(const char *, raw_header, commit->raw_header)
GIT_COMMIT_GETTER
(
git_time_t
,
time
,
commit
->
committer
->
when
.
time
)
GIT_COMMIT_GETTER
(
int
,
time_offset
,
commit
->
committer
->
when
.
offset
)
GIT_COMMIT_GETTER
(
unsigned
int
,
parentcount
,
(
unsigned
int
)
git_array_size
(
commit
->
parent_ids
))
GIT_COMMIT_GETTER
(
const
git_oid
*
,
tree_id
,
&
commit
->
tree_id
)
;
GIT_COMMIT_GETTER
(
const
git_oid
*
,
tree_id
,
&
commit
->
tree_id
)
const
char
*
git_commit_message
(
const
git_commit
*
commit
)
{
...
...
src/config_file.c
View file @
437ba9ad
...
...
@@ -21,7 +21,7 @@
#include <sys/types.h>
#include <regex.h>
GIT__USE_STRMAP
;
GIT__USE_STRMAP
typedef
struct
cvar_t
{
struct
cvar_t
*
next
;
...
...
src/diff_driver.c
View file @
437ba9ad
...
...
@@ -17,7 +17,7 @@
#include "config.h"
#include "repository.h"
GIT__USE_STRMAP
;
GIT__USE_STRMAP
typedef
enum
{
DIFF_DRIVER_AUTO
=
0
,
...
...
src/fileops.c
View file @
437ba9ad
...
...
@@ -13,7 +13,7 @@
#include "win32/findfile.h"
#endif
GIT__USE_STRMAP
;
GIT__USE_STRMAP
int
git_futils_mkpath2file
(
const
char
*
file_path
,
const
mode_t
mode
)
{
...
...
src/mwindow.c
View file @
437ba9ad
...
...
@@ -14,7 +14,7 @@
#include "strmap.h"
#include "pack.h"
GIT__USE_STRMAP
;
GIT__USE_STRMAP
#define DEFAULT_WINDOW_SIZE \
(sizeof(void*) >= 8 \
...
...
src/odb_mempack.c
View file @
437ba9ad
...
...
@@ -18,7 +18,7 @@
#include "git2/types.h"
#include "git2/pack.h"
GIT__USE_OIDMAP
;
GIT__USE_OIDMAP
struct
memobject
{
git_oid
oid
;
...
...
src/offmap.h
View file @
437ba9ad
...
...
@@ -17,11 +17,11 @@
#define kfree git__free
#include "khash.h"
__KHASH_TYPE
(
off
,
git_off_t
,
void
*
)
;
__KHASH_TYPE
(
off
,
git_off_t
,
void
*
)
typedef
khash_t
(
off
)
git_offmap
;
#define GIT__USE_OFFMAP \
__KHASH_IMPL(off, static kh_inline, git_off_t, void *, 1, kh_int64_hash_func, kh_int64_hash_equal)
;
__KHASH_IMPL(off, static kh_inline, git_off_t, void *, 1, kh_int64_hash_func, kh_int64_hash_equal)
#define git_offmap_alloc() kh_init(off)
#define git_offmap_free(h) kh_destroy(off, h), h = NULL
...
...
src/oidmap.h
View file @
437ba9ad
...
...
@@ -17,7 +17,7 @@
#define kfree git__free
#include "khash.h"
__KHASH_TYPE
(
oid
,
const
git_oid
*
,
void
*
)
;
__KHASH_TYPE
(
oid
,
const
git_oid
*
,
void
*
)
typedef
khash_t
(
oid
)
git_oidmap
;
GIT_INLINE
(
khint_t
)
git_oidmap_hash
(
const
git_oid
*
oid
)
...
...
src/pack.h
View file @
437ba9ad
...
...
@@ -72,8 +72,8 @@ typedef git_array_t(struct pack_chain_elem) git_dependency_chain;
#include "offmap.h"
GIT__USE_OFFMAP
;
GIT__USE_OIDMAP
;
GIT__USE_OFFMAP
GIT__USE_OIDMAP
#define GIT_PACK_CACHE_MEMORY_LIMIT 16 * 1024 * 1024
#define GIT_PACK_CACHE_SIZE_LIMIT 1024 * 1024
/* don't bother caching anything over 1MB */
...
...
src/refdb_fs.c
View file @
437ba9ad
...
...
@@ -26,7 +26,7 @@
#include <git2/sys/refs.h>
#include <git2/sys/reflog.h>
GIT__USE_STRMAP
;
GIT__USE_STRMAP
#define DEFAULT_NESTING_LEVEL 5
#define MAX_NESTING_LEVEL 10
...
...
src/refs.c
View file @
437ba9ad
...
...
@@ -24,7 +24,7 @@
#include <git2/signature.h>
#include <git2/commit.h>
GIT__USE_STRMAP
;
GIT__USE_STRMAP
#define DEFAULT_NESTING_LEVEL 5
#define MAX_NESTING_LEVEL 10
...
...
src/revwalk.h
View file @
437ba9ad
...
...
@@ -14,7 +14,7 @@
#include "pool.h"
#include "vector.h"
GIT__USE_OIDMAP
;
GIT__USE_OIDMAP
struct
git_revwalk
{
git_repository
*
repo
;
...
...
src/sortedcache.c
View file @
437ba9ad
#include "sortedcache.h"
GIT__USE_STRMAP
;
GIT__USE_STRMAP
int
git_sortedcache_new
(
git_sortedcache
**
out
,
...
...
src/strmap.h
View file @
437ba9ad
...
...
@@ -16,7 +16,7 @@
#define kfree git__free
#include "khash.h"
__KHASH_TYPE
(
str
,
const
char
*
,
void
*
)
;
__KHASH_TYPE
(
str
,
const
char
*
,
void
*
)
typedef
khash_t
(
str
)
git_strmap
;
typedef
khiter_t
git_strmap_iter
;
...
...
src/submodule.c
View file @
437ba9ad
...
...
@@ -85,7 +85,7 @@ static kh_inline int str_equal_no_trailing_slash(const char *a, const char *b)
__KHASH_IMPL
(
str
,
static
kh_inline
,
const
char
*
,
void
*
,
1
,
str_hash_no_trailing_slash
,
str_equal_no_trailing_slash
)
;
str_hash_no_trailing_slash
,
str_equal_no_trailing_slash
)
static
int
submodule_cache_init
(
git_repository
*
repo
,
int
refresh
);
static
void
submodule_cache_free
(
git_submodule_cache
*
cache
);
...
...
src/transaction.c
View file @
437ba9ad
...
...
@@ -17,7 +17,7 @@
#include "git2/sys/refs.h"
#include "git2/sys/refdb_backend.h"
GIT__USE_STRMAP
;
GIT__USE_STRMAP
typedef
struct
{
const
char
*
name
;
...
...
src/tree.c
View file @
437ba9ad
...
...
@@ -17,7 +17,7 @@
#define DEFAULT_TREE_SIZE 16
#define MAX_FILEMODE_BYTES 6
GIT__USE_STRMAP
;
GIT__USE_STRMAP
static
bool
valid_filemode
(
const
int
filemode
)
{
...
...
tests/core/oidmap.c
View file @
437ba9ad
#include "clar_libgit2.h"
#include "oidmap.h"
GIT__USE_OIDMAP
;
GIT__USE_OIDMAP
typedef
struct
{
git_oid
oid
;
...
...
tests/core/strmap.c
View file @
437ba9ad
#include "clar_libgit2.h"
#include "strmap.h"
GIT__USE_STRMAP
;
GIT__USE_STRMAP
git_strmap
*
g_table
;
...
...
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