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
7dcc29fc
Commit
7dcc29fc
authored
Oct 22, 2021
by
Peter Pettersson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make enum in src,tests and examples C90 compliant by removing trailing comma.
parent
43d9f0e3
Show whitespace changes
Inline
Side-by-side
Showing
37 changed files
with
46 additions
and
46 deletions
+46
-46
examples/add.c
+1
-1
examples/remote.c
+1
-1
examples/status.c
+1
-1
src/annotated_commit.h
+1
-1
src/checkout.c
+1
-1
src/commit.h
+1
-1
src/commit_graph.c
+1
-1
src/crlf.c
+1
-1
src/diff.h
+1
-1
src/diff_driver.c
+1
-1
src/diff_generate.h
+2
-2
src/futils.h
+3
-3
src/ignore.h
+1
-1
src/index.c
+1
-1
src/iterator.c
+1
-1
src/iterator.h
+2
-2
src/merge.h
+3
-3
src/netops.h
+1
-1
src/odb.h
+1
-1
src/patch_generate.h
+1
-1
src/patch_parse.c
+1
-1
src/pathspec.h
+1
-1
src/pqueue.h
+1
-1
src/rebase.c
+1
-1
src/refdb_fs.c
+1
-1
src/repository.h
+2
-2
src/submodule.c
+1
-1
src/submodule.h
+1
-1
src/sysdir.h
+1
-1
src/trailer.c
+1
-1
src/transaction.c
+1
-1
src/transports/auth.h
+1
-1
src/transports/smart.h
+1
-1
src/transports/winhttp.c
+1
-1
src/vector.h
+1
-1
src/zstream.h
+1
-1
tests/clar.h
+3
-3
No files found.
examples/add.c
View file @
7dcc29fc
...
@@ -28,7 +28,7 @@
...
@@ -28,7 +28,7 @@
enum
index_mode
{
enum
index_mode
{
INDEX_NONE
,
INDEX_NONE
,
INDEX_ADD
,
INDEX_ADD
};
};
struct
index_options
{
struct
index_options
{
...
...
examples/remote.c
View file @
7dcc29fc
...
@@ -27,7 +27,7 @@ enum subcmd {
...
@@ -27,7 +27,7 @@ enum subcmd {
subcmd_remove
,
subcmd_remove
,
subcmd_rename
,
subcmd_rename
,
subcmd_seturl
,
subcmd_seturl
,
subcmd_show
,
subcmd_show
};
};
struct
remote_opts
{
struct
remote_opts
{
...
...
examples/status.c
View file @
7dcc29fc
...
@@ -38,7 +38,7 @@ enum {
...
@@ -38,7 +38,7 @@ enum {
FORMAT_DEFAULT
=
0
,
FORMAT_DEFAULT
=
0
,
FORMAT_LONG
=
1
,
FORMAT_LONG
=
1
,
FORMAT_SHORT
=
2
,
FORMAT_SHORT
=
2
,
FORMAT_PORCELAIN
=
3
,
FORMAT_PORCELAIN
=
3
};
};
#define MAX_PATHSPEC 8
#define MAX_PATHSPEC 8
...
...
src/annotated_commit.h
View file @
7dcc29fc
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
typedef
enum
{
typedef
enum
{
GIT_ANNOTATED_COMMIT_REAL
=
1
,
GIT_ANNOTATED_COMMIT_REAL
=
1
,
GIT_ANNOTATED_COMMIT_VIRTUAL
=
2
,
GIT_ANNOTATED_COMMIT_VIRTUAL
=
2
}
git_annotated_commit_t
;
}
git_annotated_commit_t
;
/**
/**
...
...
src/checkout.c
View file @
7dcc29fc
...
@@ -45,7 +45,7 @@ enum {
...
@@ -45,7 +45,7 @@ enum {
CHECKOUT_ACTION__UPDATE_CONFLICT
=
32
,
CHECKOUT_ACTION__UPDATE_CONFLICT
=
32
,
CHECKOUT_ACTION__MAX
=
32
,
CHECKOUT_ACTION__MAX
=
32
,
CHECKOUT_ACTION__REMOVE_AND_UPDATE
=
CHECKOUT_ACTION__REMOVE_AND_UPDATE
=
(
CHECKOUT_ACTION__UPDATE_BLOB
|
CHECKOUT_ACTION__REMOVE
)
,
(
CHECKOUT_ACTION__UPDATE_BLOB
|
CHECKOUT_ACTION__REMOVE
)
};
};
typedef
struct
{
typedef
struct
{
...
...
src/commit.h
View file @
7dcc29fc
...
@@ -61,7 +61,7 @@ int git_commit__parse(void *commit, git_odb_object *obj);
...
@@ -61,7 +61,7 @@ int git_commit__parse(void *commit, git_odb_object *obj);
int
git_commit__parse_raw
(
void
*
commit
,
const
char
*
data
,
size_t
size
);
int
git_commit__parse_raw
(
void
*
commit
,
const
char
*
data
,
size_t
size
);
typedef
enum
{
typedef
enum
{
GIT_COMMIT_PARSE_QUICK
=
(
1
<<
0
)
,
/**< Only parse parents and committer info */
GIT_COMMIT_PARSE_QUICK
=
(
1
<<
0
)
/**< Only parse parents and committer info */
}
git_commit__parse_flags
;
}
git_commit__parse_flags
;
int
git_commit__parse_ext
(
git_commit
*
commit
,
git_odb_object
*
odb_obj
,
unsigned
int
flags
);
int
git_commit__parse_ext
(
git_commit
*
commit
,
git_odb_object
*
odb_obj
,
unsigned
int
flags
);
...
...
src/commit_graph.c
View file @
7dcc29fc
...
@@ -754,7 +754,7 @@ enum generation_number_commit_state {
...
@@ -754,7 +754,7 @@ enum generation_number_commit_state {
GENERATION_NUMBER_COMMIT_STATE_UNVISITED
=
0
,
GENERATION_NUMBER_COMMIT_STATE_UNVISITED
=
0
,
GENERATION_NUMBER_COMMIT_STATE_ADDED
=
1
,
GENERATION_NUMBER_COMMIT_STATE_ADDED
=
1
,
GENERATION_NUMBER_COMMIT_STATE_EXPANDED
=
2
,
GENERATION_NUMBER_COMMIT_STATE_EXPANDED
=
2
,
GENERATION_NUMBER_COMMIT_STATE_VISITED
=
3
,
GENERATION_NUMBER_COMMIT_STATE_VISITED
=
3
};
};
static
int
compute_generation_numbers
(
git_vector
*
commits
)
static
int
compute_generation_numbers
(
git_vector
*
commits
)
...
...
src/crlf.c
View file @
7dcc29fc
...
@@ -26,7 +26,7 @@ typedef enum {
...
@@ -26,7 +26,7 @@ typedef enum {
GIT_CRLF_TEXT_CRLF
,
GIT_CRLF_TEXT_CRLF
,
GIT_CRLF_AUTO
,
GIT_CRLF_AUTO
,
GIT_CRLF_AUTO_INPUT
,
GIT_CRLF_AUTO_INPUT
,
GIT_CRLF_AUTO_CRLF
,
GIT_CRLF_AUTO_CRLF
}
git_crlf_t
;
}
git_crlf_t
;
struct
crlf_attrs
{
struct
crlf_attrs
{
...
...
src/diff.h
View file @
7dcc29fc
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
typedef
enum
{
typedef
enum
{
GIT_DIFF_TYPE_UNKNOWN
=
0
,
GIT_DIFF_TYPE_UNKNOWN
=
0
,
GIT_DIFF_TYPE_GENERATED
=
1
,
GIT_DIFF_TYPE_GENERATED
=
1
,
GIT_DIFF_TYPE_PARSED
=
2
,
GIT_DIFF_TYPE_PARSED
=
2
}
git_diff_origin_t
;
}
git_diff_origin_t
;
struct
git_diff
{
struct
git_diff
{
...
...
src/diff_driver.c
View file @
7dcc29fc
...
@@ -21,7 +21,7 @@ typedef enum {
...
@@ -21,7 +21,7 @@ typedef enum {
DIFF_DRIVER_AUTO
=
0
,
DIFF_DRIVER_AUTO
=
0
,
DIFF_DRIVER_BINARY
=
1
,
DIFF_DRIVER_BINARY
=
1
,
DIFF_DRIVER_TEXT
=
2
,
DIFF_DRIVER_TEXT
=
2
,
DIFF_DRIVER_PATTERNLIST
=
3
,
DIFF_DRIVER_PATTERNLIST
=
3
}
git_diff_driver_t
;
}
git_diff_driver_t
;
typedef
struct
{
typedef
struct
{
...
...
src/diff_generate.h
View file @
7dcc29fc
...
@@ -18,7 +18,7 @@ enum {
...
@@ -18,7 +18,7 @@ enum {
GIT_DIFFCAPS_IGNORE_STAT
=
(
1
<<
1
),
/* use stat? */
GIT_DIFFCAPS_IGNORE_STAT
=
(
1
<<
1
),
/* use stat? */
GIT_DIFFCAPS_TRUST_MODE_BITS
=
(
1
<<
2
),
/* use st_mode? */
GIT_DIFFCAPS_TRUST_MODE_BITS
=
(
1
<<
2
),
/* use st_mode? */
GIT_DIFFCAPS_TRUST_CTIME
=
(
1
<<
3
),
/* use st_ctime? */
GIT_DIFFCAPS_TRUST_CTIME
=
(
1
<<
3
),
/* use st_ctime? */
GIT_DIFFCAPS_USE_DEV
=
(
1
<<
4
)
,
/* use st_dev? */
GIT_DIFFCAPS_USE_DEV
=
(
1
<<
4
)
/* use st_dev? */
};
};
#define DIFF_FLAGS_KNOWN_BINARY (GIT_DIFF_FLAG_BINARY|GIT_DIFF_FLAG_NOT_BINARY)
#define DIFF_FLAGS_KNOWN_BINARY (GIT_DIFF_FLAG_BINARY|GIT_DIFF_FLAG_NOT_BINARY)
...
@@ -36,7 +36,7 @@ enum {
...
@@ -36,7 +36,7 @@ enum {
GIT_DIFF_FLAG__TO_SPLIT
=
(
1
<<
17
),
/* split entry during rename det. */
GIT_DIFF_FLAG__TO_SPLIT
=
(
1
<<
17
),
/* split entry during rename det. */
GIT_DIFF_FLAG__IS_RENAME_TARGET
=
(
1
<<
18
),
GIT_DIFF_FLAG__IS_RENAME_TARGET
=
(
1
<<
18
),
GIT_DIFF_FLAG__IS_RENAME_SOURCE
=
(
1
<<
19
),
GIT_DIFF_FLAG__IS_RENAME_SOURCE
=
(
1
<<
19
),
GIT_DIFF_FLAG__HAS_SELF_SIMILARITY
=
(
1
<<
20
)
,
GIT_DIFF_FLAG__HAS_SELF_SIMILARITY
=
(
1
<<
20
)
};
};
#define GIT_DIFF_FLAG__CLEAR_INTERNAL(F) (F) = ((F) & 0x00FFFF)
#define GIT_DIFF_FLAG__CLEAR_INTERNAL(F) (F) = ((F) & 0x00FFFF)
...
...
src/futils.h
View file @
7dcc29fc
...
@@ -96,7 +96,7 @@ typedef enum {
...
@@ -96,7 +96,7 @@ typedef enum {
GIT_MKDIR_SKIP_LAST2
=
32
,
GIT_MKDIR_SKIP_LAST2
=
32
,
GIT_MKDIR_VERIFY_DIR
=
64
,
GIT_MKDIR_VERIFY_DIR
=
64
,
GIT_MKDIR_REMOVE_FILES
=
128
,
GIT_MKDIR_REMOVE_FILES
=
128
,
GIT_MKDIR_REMOVE_SYMLINKS
=
256
,
GIT_MKDIR_REMOVE_SYMLINKS
=
256
}
git_futils_mkdir_flags
;
}
git_futils_mkdir_flags
;
struct
git_futils_mkdir_perfdata
struct
git_futils_mkdir_perfdata
...
@@ -159,7 +159,7 @@ typedef enum {
...
@@ -159,7 +159,7 @@ typedef enum {
GIT_RMDIR_SKIP_NONEMPTY
=
(
1
<<
1
),
GIT_RMDIR_SKIP_NONEMPTY
=
(
1
<<
1
),
GIT_RMDIR_EMPTY_PARENTS
=
(
1
<<
2
),
GIT_RMDIR_EMPTY_PARENTS
=
(
1
<<
2
),
GIT_RMDIR_REMOVE_BLOCKERS
=
(
1
<<
3
),
GIT_RMDIR_REMOVE_BLOCKERS
=
(
1
<<
3
),
GIT_RMDIR_SKIP_ROOT
=
(
1
<<
4
)
,
GIT_RMDIR_SKIP_ROOT
=
(
1
<<
4
)
}
git_futils_rmdir_flags
;
}
git_futils_rmdir_flags
;
/**
/**
...
@@ -224,7 +224,7 @@ typedef enum {
...
@@ -224,7 +224,7 @@ typedef enum {
GIT_CPDIR_OVERWRITE
=
(
1u
<<
3
),
GIT_CPDIR_OVERWRITE
=
(
1u
<<
3
),
GIT_CPDIR_CHMOD_DIRS
=
(
1u
<<
4
),
GIT_CPDIR_CHMOD_DIRS
=
(
1u
<<
4
),
GIT_CPDIR_SIMPLE_TO_MODE
=
(
1u
<<
5
),
GIT_CPDIR_SIMPLE_TO_MODE
=
(
1u
<<
5
),
GIT_CPDIR_LINK_FILES
=
(
1u
<<
6
)
,
GIT_CPDIR_LINK_FILES
=
(
1u
<<
6
)
}
git_futils_cpdir_flags
;
}
git_futils_cpdir_flags
;
/**
/**
...
...
src/ignore.h
View file @
7dcc29fc
...
@@ -48,7 +48,7 @@ enum {
...
@@ -48,7 +48,7 @@ enum {
GIT_IGNORE_UNCHECKED
=
-
2
,
GIT_IGNORE_UNCHECKED
=
-
2
,
GIT_IGNORE_NOTFOUND
=
-
1
,
GIT_IGNORE_NOTFOUND
=
-
1
,
GIT_IGNORE_FALSE
=
0
,
GIT_IGNORE_FALSE
=
0
,
GIT_IGNORE_TRUE
=
1
,
GIT_IGNORE_TRUE
=
1
};
};
extern
int
git_ignore__lookup
(
int
*
out
,
git_ignores
*
ign
,
const
char
*
path
,
git_dir_flag
dir_flag
);
extern
int
git_ignore__lookup
(
int
*
out
,
git_ignores
*
ign
,
const
char
*
path
,
git_dir_flag
dir_flag
);
...
...
src/index.c
View file @
7dcc29fc
...
@@ -3386,7 +3386,7 @@ enum {
...
@@ -3386,7 +3386,7 @@ enum {
INDEX_ACTION_NONE
=
0
,
INDEX_ACTION_NONE
=
0
,
INDEX_ACTION_UPDATE
=
1
,
INDEX_ACTION_UPDATE
=
1
,
INDEX_ACTION_REMOVE
=
2
,
INDEX_ACTION_REMOVE
=
2
,
INDEX_ACTION_ADDALL
=
3
,
INDEX_ACTION_ADDALL
=
3
};
};
int
git_index_add_all
(
int
git_index_add_all
(
...
...
src/iterator.c
View file @
7dcc29fc
...
@@ -293,7 +293,7 @@ typedef enum {
...
@@ -293,7 +293,7 @@ typedef enum {
ITERATOR_PATHLIST_IS_FILE
=
1
,
ITERATOR_PATHLIST_IS_FILE
=
1
,
ITERATOR_PATHLIST_IS_DIR
=
2
,
ITERATOR_PATHLIST_IS_DIR
=
2
,
ITERATOR_PATHLIST_IS_PARENT
=
3
,
ITERATOR_PATHLIST_IS_PARENT
=
3
,
ITERATOR_PATHLIST_FULL
=
4
,
ITERATOR_PATHLIST_FULL
=
4
}
iterator_pathlist_search_t
;
}
iterator_pathlist_search_t
;
static
iterator_pathlist_search_t
iterator_pathlist_search
(
static
iterator_pathlist_search_t
iterator_pathlist_search
(
...
...
src/iterator.h
View file @
7dcc29fc
...
@@ -21,7 +21,7 @@ typedef enum {
...
@@ -21,7 +21,7 @@ typedef enum {
GIT_ITERATOR_TREE
=
1
,
GIT_ITERATOR_TREE
=
1
,
GIT_ITERATOR_INDEX
=
2
,
GIT_ITERATOR_INDEX
=
2
,
GIT_ITERATOR_WORKDIR
=
3
,
GIT_ITERATOR_WORKDIR
=
3
,
GIT_ITERATOR_FS
=
4
,
GIT_ITERATOR_FS
=
4
}
git_iterator_t
;
}
git_iterator_t
;
typedef
enum
{
typedef
enum
{
...
@@ -42,7 +42,7 @@ typedef enum {
...
@@ -42,7 +42,7 @@ typedef enum {
/** descend into symlinked directories */
/** descend into symlinked directories */
GIT_ITERATOR_DESCEND_SYMLINKS
=
(
1u
<<
7
),
GIT_ITERATOR_DESCEND_SYMLINKS
=
(
1u
<<
7
),
/** hash files in workdir or filesystem iterators */
/** hash files in workdir or filesystem iterators */
GIT_ITERATOR_INCLUDE_HASH
=
(
1u
<<
8
)
,
GIT_ITERATOR_INCLUDE_HASH
=
(
1u
<<
8
)
}
git_iterator_flag_t
;
}
git_iterator_flag_t
;
typedef
enum
{
typedef
enum
{
...
...
src/merge.h
View file @
7dcc29fc
...
@@ -29,12 +29,12 @@
...
@@ -29,12 +29,12 @@
/** Internal merge flags. */
/** Internal merge flags. */
enum
{
enum
{
/** The merge is for a virtual base in a recursive merge. */
/** The merge is for a virtual base in a recursive merge. */
GIT_MERGE__VIRTUAL_BASE
=
(
1
<<
31
)
,
GIT_MERGE__VIRTUAL_BASE
=
(
1
<<
31
)
};
};
enum
{
enum
{
/** Accept the conflict file, staging it as the merge result. */
/** Accept the conflict file, staging it as the merge result. */
GIT_MERGE_FILE_FAVOR__CONFLICTED
=
4
,
GIT_MERGE_FILE_FAVOR__CONFLICTED
=
4
};
};
...
@@ -83,7 +83,7 @@ typedef enum {
...
@@ -83,7 +83,7 @@ typedef enum {
GIT_MERGE_DIFF_DIRECTORY_FILE
=
(
1
<<
10
),
GIT_MERGE_DIFF_DIRECTORY_FILE
=
(
1
<<
10
),
/* The child of a folder that is in a directory/file conflict. */
/* The child of a folder that is in a directory/file conflict. */
GIT_MERGE_DIFF_DF_CHILD
=
(
1
<<
11
)
,
GIT_MERGE_DIFF_DF_CHILD
=
(
1
<<
11
)
}
git_merge_diff_t
;
}
git_merge_diff_t
;
typedef
struct
{
typedef
struct
{
...
...
src/netops.h
View file @
7dcc29fc
...
@@ -42,7 +42,7 @@ typedef struct gitno_buffer {
...
@@ -42,7 +42,7 @@ typedef struct gitno_buffer {
/* Flags to gitno_connect */
/* Flags to gitno_connect */
enum
{
enum
{
/* Attempt to create an SSL connection. */
/* Attempt to create an SSL connection. */
GITNO_CONNECT_SSL
=
1
,
GITNO_CONNECT_SSL
=
1
};
};
/**
/**
...
...
src/odb.h
View file @
7dcc29fc
...
@@ -53,7 +53,7 @@ struct git_odb {
...
@@ -53,7 +53,7 @@ struct git_odb {
};
};
typedef
enum
{
typedef
enum
{
GIT_ODB_CAP_FROM_OWNER
=
-
1
,
GIT_ODB_CAP_FROM_OWNER
=
-
1
}
git_odb_cap_t
;
}
git_odb_cap_t
;
/*
/*
...
...
src/patch_generate.h
View file @
7dcc29fc
...
@@ -21,7 +21,7 @@ enum {
...
@@ -21,7 +21,7 @@ enum {
GIT_PATCH_GENERATED_DIFFABLE
=
(
1
<<
3
),
GIT_PATCH_GENERATED_DIFFABLE
=
(
1
<<
3
),
/* the difference between the two sides has been computed */
/* the difference between the two sides has been computed */
GIT_PATCH_GENERATED_DIFFED
=
(
1
<<
4
),
GIT_PATCH_GENERATED_DIFFED
=
(
1
<<
4
),
GIT_PATCH_GENERATED_FLATTENED
=
(
1
<<
5
)
,
GIT_PATCH_GENERATED_FLATTENED
=
(
1
<<
5
)
};
};
struct
git_patch_generated
{
struct
git_patch_generated
{
...
...
src/patch_parse.c
View file @
7dcc29fc
...
@@ -382,7 +382,7 @@ typedef enum {
...
@@ -382,7 +382,7 @@ typedef enum {
STATE_RENAME
,
STATE_RENAME
,
STATE_COPY
,
STATE_COPY
,
STATE_END
,
STATE_END
}
parse_header_state
;
}
parse_header_state
;
typedef
struct
{
typedef
struct
{
...
...
src/pathspec.h
View file @
7dcc29fc
...
@@ -25,7 +25,7 @@ struct git_pathspec {
...
@@ -25,7 +25,7 @@ struct git_pathspec {
enum
{
enum
{
PATHSPEC_DATATYPE_STRINGS
=
0
,
PATHSPEC_DATATYPE_STRINGS
=
0
,
PATHSPEC_DATATYPE_DIFF
=
1
,
PATHSPEC_DATATYPE_DIFF
=
1
};
};
typedef
git_array_t
(
char
*
)
git_pathspec_string_array_t
;
typedef
git_array_t
(
char
*
)
git_pathspec_string_array_t
;
...
...
src/pqueue.h
View file @
7dcc29fc
...
@@ -15,7 +15,7 @@ typedef git_vector git_pqueue;
...
@@ -15,7 +15,7 @@ typedef git_vector git_pqueue;
enum
{
enum
{
/* flag meaning: don't grow heap, keep highest values only */
/* flag meaning: don't grow heap, keep highest values only */
GIT_PQUEUE_FIXED_SIZE
=
(
GIT_VECTOR_FLAG_MAX
<<
1
)
,
GIT_PQUEUE_FIXED_SIZE
=
(
GIT_VECTOR_FLAG_MAX
<<
1
)
};
};
/**
/**
...
...
src/rebase.c
View file @
7dcc29fc
...
@@ -53,7 +53,7 @@ typedef enum {
...
@@ -53,7 +53,7 @@ typedef enum {
GIT_REBASE_NONE
=
0
,
GIT_REBASE_NONE
=
0
,
GIT_REBASE_APPLY
=
1
,
GIT_REBASE_APPLY
=
1
,
GIT_REBASE_MERGE
=
2
,
GIT_REBASE_MERGE
=
2
,
GIT_REBASE_INTERACTIVE
=
3
,
GIT_REBASE_INTERACTIVE
=
3
}
git_rebase_t
;
}
git_rebase_t
;
struct
git_rebase
{
struct
git_rebase
{
...
...
src/refdb_fs.c
View file @
7dcc29fc
...
@@ -35,7 +35,7 @@ enum {
...
@@ -35,7 +35,7 @@ enum {
PACKREF_HAS_PEEL
=
1
,
PACKREF_HAS_PEEL
=
1
,
PACKREF_WAS_LOOSE
=
2
,
PACKREF_WAS_LOOSE
=
2
,
PACKREF_CANNOT_PEEL
=
4
,
PACKREF_CANNOT_PEEL
=
4
,
PACKREF_SHADOWED
=
8
,
PACKREF_SHADOWED
=
8
};
};
enum
{
enum
{
...
...
src/repository.h
View file @
7dcc29fc
...
@@ -118,14 +118,14 @@ typedef enum {
...
@@ -118,14 +118,14 @@ typedef enum {
/* core.fsyncObjectFiles */
/* core.fsyncObjectFiles */
GIT_FSYNCOBJECTFILES_DEFAULT
=
GIT_CONFIGMAP_FALSE
,
GIT_FSYNCOBJECTFILES_DEFAULT
=
GIT_CONFIGMAP_FALSE
,
/* core.longpaths */
/* core.longpaths */
GIT_LONGPATHS_DEFAULT
=
GIT_CONFIGMAP_FALSE
,
GIT_LONGPATHS_DEFAULT
=
GIT_CONFIGMAP_FALSE
}
git_configmap_value
;
}
git_configmap_value
;
/* internal repository init flags */
/* internal repository init flags */
enum
{
enum
{
GIT_REPOSITORY_INIT__HAS_DOTGIT
=
(
1u
<<
16
),
GIT_REPOSITORY_INIT__HAS_DOTGIT
=
(
1u
<<
16
),
GIT_REPOSITORY_INIT__NATURAL_WD
=
(
1u
<<
17
),
GIT_REPOSITORY_INIT__NATURAL_WD
=
(
1u
<<
17
),
GIT_REPOSITORY_INIT__IS_REINIT
=
(
1u
<<
18
)
,
GIT_REPOSITORY_INIT__IS_REINIT
=
(
1u
<<
18
)
};
};
/** Internal structure for repository object */
/** Internal structure for repository object */
...
...
src/submodule.c
View file @
7dcc29fc
...
@@ -61,7 +61,7 @@ enum {
...
@@ -61,7 +61,7 @@ enum {
};
};
enum
{
enum
{
GITMODULES_EXISTING
=
0
,
GITMODULES_EXISTING
=
0
,
GITMODULES_CREATE
=
1
,
GITMODULES_CREATE
=
1
};
};
static
int
submodule_alloc
(
git_submodule
**
out
,
git_repository
*
repo
,
const
char
*
name
);
static
int
submodule_alloc
(
git_submodule
**
out
,
git_repository
*
repo
,
const
char
*
name
);
...
...
src/submodule.h
View file @
7dcc29fc
...
@@ -110,7 +110,7 @@ enum {
...
@@ -110,7 +110,7 @@ enum {
GIT_SUBMODULE_STATUS__HEAD_NOT_SUBMODULE
=
(
1u
<<
24
),
GIT_SUBMODULE_STATUS__HEAD_NOT_SUBMODULE
=
(
1u
<<
24
),
GIT_SUBMODULE_STATUS__INDEX_NOT_SUBMODULE
=
(
1u
<<
25
),
GIT_SUBMODULE_STATUS__INDEX_NOT_SUBMODULE
=
(
1u
<<
25
),
GIT_SUBMODULE_STATUS__WD_NOT_SUBMODULE
=
(
1u
<<
26
),
GIT_SUBMODULE_STATUS__WD_NOT_SUBMODULE
=
(
1u
<<
26
),
GIT_SUBMODULE_STATUS__INDEX_MULTIPLE_ENTRIES
=
(
1u
<<
27
)
,
GIT_SUBMODULE_STATUS__INDEX_MULTIPLE_ENTRIES
=
(
1u
<<
27
)
};
};
#define GIT_SUBMODULE_STATUS__CLEAR_INTERNAL(S) \
#define GIT_SUBMODULE_STATUS__CLEAR_INTERNAL(S) \
...
...
src/sysdir.h
View file @
7dcc29fc
...
@@ -74,7 +74,7 @@ typedef enum {
...
@@ -74,7 +74,7 @@ typedef enum {
GIT_SYSDIR_XDG
=
2
,
GIT_SYSDIR_XDG
=
2
,
GIT_SYSDIR_PROGRAMDATA
=
3
,
GIT_SYSDIR_PROGRAMDATA
=
3
,
GIT_SYSDIR_TEMPLATE
=
4
,
GIT_SYSDIR_TEMPLATE
=
4
,
GIT_SYSDIR__MAX
=
5
,
GIT_SYSDIR__MAX
=
5
}
git_sysdir_t
;
}
git_sysdir_t
;
/**
/**
...
...
src/trailer.c
View file @
7dcc29fc
...
@@ -286,7 +286,7 @@ enum trailer_state {
...
@@ -286,7 +286,7 @@ enum trailer_state {
S_VALUE
=
4
,
S_VALUE
=
4
,
S_VALUE_NL
=
5
,
S_VALUE_NL
=
5
,
S_VALUE_END
=
6
,
S_VALUE_END
=
6
,
S_IGNORE
=
7
,
S_IGNORE
=
7
};
};
#define NEXT(st) { state = (st); ptr++; continue; }
#define NEXT(st) { state = (st); ptr++; continue; }
...
...
src/transaction.c
View file @
7dcc29fc
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
typedef
enum
{
typedef
enum
{
TRANSACTION_NONE
,
TRANSACTION_NONE
,
TRANSACTION_REFS
,
TRANSACTION_REFS
,
TRANSACTION_CONFIG
,
TRANSACTION_CONFIG
}
transaction_t
;
}
transaction_t
;
typedef
struct
{
typedef
struct
{
...
...
src/transports/auth.h
View file @
7dcc29fc
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
typedef
enum
{
typedef
enum
{
GIT_HTTP_AUTH_BASIC
=
1
,
GIT_HTTP_AUTH_BASIC
=
1
,
GIT_HTTP_AUTH_NEGOTIATE
=
2
,
GIT_HTTP_AUTH_NEGOTIATE
=
2
,
GIT_HTTP_AUTH_NTLM
=
4
,
GIT_HTTP_AUTH_NTLM
=
4
}
git_http_auth_t
;
}
git_http_auth_t
;
typedef
struct
git_http_auth_context
git_http_auth_context
;
typedef
struct
git_http_auth_context
git_http_auth_context
;
...
...
src/transports/smart.h
View file @
7dcc29fc
...
@@ -46,7 +46,7 @@ typedef enum {
...
@@ -46,7 +46,7 @@ typedef enum {
GIT_PKT_PROGRESS
,
GIT_PKT_PROGRESS
,
GIT_PKT_OK
,
GIT_PKT_OK
,
GIT_PKT_NG
,
GIT_PKT_NG
,
GIT_PKT_UNPACK
,
GIT_PKT_UNPACK
}
git_pkt_type
;
}
git_pkt_type
;
/* Used for multi_ack and multi_ack_detailed */
/* Used for multi_ack and multi_ack_detailed */
...
...
src/transports/winhttp.c
View file @
7dcc29fc
...
@@ -99,7 +99,7 @@ typedef enum {
...
@@ -99,7 +99,7 @@ typedef enum {
GIT_WINHTTP_AUTH_BASIC
=
1
,
GIT_WINHTTP_AUTH_BASIC
=
1
,
GIT_WINHTTP_AUTH_NTLM
=
2
,
GIT_WINHTTP_AUTH_NTLM
=
2
,
GIT_WINHTTP_AUTH_NEGOTIATE
=
4
,
GIT_WINHTTP_AUTH_NEGOTIATE
=
4
,
GIT_WINHTTP_AUTH_DIGEST
=
8
,
GIT_WINHTTP_AUTH_DIGEST
=
8
}
winhttp_authmechanism_t
;
}
winhttp_authmechanism_t
;
typedef
struct
{
typedef
struct
{
...
...
src/vector.h
View file @
7dcc29fc
...
@@ -13,7 +13,7 @@ typedef int (*git_vector_cmp)(const void *, const void *);
...
@@ -13,7 +13,7 @@ typedef int (*git_vector_cmp)(const void *, const void *);
enum
{
enum
{
GIT_VECTOR_SORTED
=
(
1u
<<
0
),
GIT_VECTOR_SORTED
=
(
1u
<<
0
),
GIT_VECTOR_FLAG_MAX
=
(
1u
<<
1
)
,
GIT_VECTOR_FLAG_MAX
=
(
1u
<<
1
)
};
};
typedef
struct
git_vector
{
typedef
struct
git_vector
{
...
...
src/zstream.h
View file @
7dcc29fc
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
typedef
enum
{
typedef
enum
{
GIT_ZSTREAM_INFLATE
,
GIT_ZSTREAM_INFLATE
,
GIT_ZSTREAM_DEFLATE
,
GIT_ZSTREAM_DEFLATE
}
git_zstream_t
;
}
git_zstream_t
;
typedef
struct
{
typedef
struct
{
...
...
tests/clar.h
View file @
7dcc29fc
...
@@ -13,12 +13,12 @@ enum cl_test_status {
...
@@ -13,12 +13,12 @@ enum cl_test_status {
CL_TEST_OK
,
CL_TEST_OK
,
CL_TEST_FAILURE
,
CL_TEST_FAILURE
,
CL_TEST_SKIP
,
CL_TEST_SKIP
,
CL_TEST_NOTRUN
,
CL_TEST_NOTRUN
};
};
enum
cl_output_format
{
enum
cl_output_format
{
CL_OUTPUT_CLAP
,
CL_OUTPUT_CLAP
,
CL_OUTPUT_TAP
,
CL_OUTPUT_TAP
};
};
/** Setup clar environment */
/** Setup clar environment */
...
@@ -60,7 +60,7 @@ typedef enum cl_trace_event {
...
@@ -60,7 +60,7 @@ typedef enum cl_trace_event {
CL_TRACE__TEST__END
,
CL_TRACE__TEST__END
,
CL_TRACE__TEST__RUN_BEGIN
,
CL_TRACE__TEST__RUN_BEGIN
,
CL_TRACE__TEST__RUN_END
,
CL_TRACE__TEST__RUN_END
,
CL_TRACE__TEST__LONGJMP
,
CL_TRACE__TEST__LONGJMP
}
cl_trace_event
;
}
cl_trace_event
;
typedef
void
(
cl_trace_cb
)(
typedef
void
(
cl_trace_cb
)(
...
...
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