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
257dd59d
Unverified
Commit
257dd59d
authored
Sep 26, 2019
by
Patrick Steinhardt
Committed by
GitHub
Sep 26, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5242 from csware/no-enum-for-flags
Don't use enum for flags
parents
9cd5240e
452b7f8f
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
9 deletions
+10
-9
include/git2/blob.h
+2
-2
include/git2/diff.h
+3
-2
include/git2/merge.h
+3
-3
include/git2/stash.h
+1
-1
src/diff.c
+1
-1
No files found.
include/git2/blob.h
View file @
257dd59d
...
...
@@ -122,8 +122,8 @@ typedef enum {
typedef
struct
{
int
version
;
/** Flags to control the filtering process */
git_blob_filter_flag
_t
flags
;
/** Flags to control the filtering process
, see `git_blob_filter_flag_t` above
*/
uint32
_t
flags
;
}
git_blob_filter_options
;
#define GIT_BLOB_FILTER_OPTIONS_VERSION 1
...
...
include/git2/diff.h
View file @
257dd59d
...
...
@@ -1378,7 +1378,8 @@ typedef enum {
typedef
struct
{
unsigned
int
version
;
git_diff_format_email_flags_t
flags
;
/** see `git_diff_format_email_flags_t` above */
uint32_t
flags
;
/** This patch number */
size_t
patch_no
;
...
...
@@ -1435,7 +1436,7 @@ GIT_EXTERN(int) git_diff_commit_as_email(
git_commit
*
commit
,
size_t
patch_no
,
size_t
total_patches
,
git_diff_format_email_flags
_t
flags
,
uint32
_t
flags
,
const
git_diff_options
*
diff_opts
);
/**
...
...
include/git2/merge.h
View file @
257dd59d
...
...
@@ -192,7 +192,7 @@ typedef struct {
git_merge_file_favor_t
favor
;
/** see `git_merge_file_flag_t` above */
git_merge_file_flag
_t
flags
;
uint32
_t
flags
;
/** The size of conflict markers (eg, "<<<<<<<"). Default is
* GIT_MERGE_CONFLICT_MARKER_SIZE. */
...
...
@@ -247,7 +247,7 @@ typedef struct {
unsigned
int
version
;
/** See `git_merge_flag_t` above */
git_merge_flag
_t
flags
;
uint32
_t
flags
;
/**
* Similarity to consider a file renamed (default 50). If
...
...
@@ -291,7 +291,7 @@ typedef struct {
git_merge_file_favor_t
file_favor
;
/** see `git_merge_file_flag_t` above */
git_merge_file_flag
_t
file_flags
;
uint32
_t
file_flags
;
}
git_merge_options
;
#define GIT_MERGE_OPTIONS_VERSION 1
...
...
include/git2/stash.h
View file @
257dd59d
...
...
@@ -127,7 +127,7 @@ typedef struct git_stash_apply_options {
unsigned
int
version
;
/** See `git_stash_apply_flags_t`, above. */
git_stash_apply_flags
flags
;
uint32_t
flags
;
/** Options to use when writing files to the working directory. */
git_checkout_options
checkout_options
;
...
...
src/diff.c
View file @
257dd59d
...
...
@@ -323,7 +323,7 @@ int git_diff_commit_as_email(
git_commit
*
commit
,
size_t
patch_no
,
size_t
total_patches
,
git_diff_format_email_flags
_t
flags
,
uint32
_t
flags
,
const
git_diff_options
*
diff_opts
)
{
git_diff
*
diff
=
NULL
;
...
...
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