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
66271925
Commit
66271925
authored
May 30, 2014
by
Alan Rogers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add GIT_STATUS_OPT_INCLUDE_UNREADABLE
parent
a777fc37
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
+3
-0
include/git2/status.h
+1
-0
src/status.c
+2
-0
No files found.
include/git2/status.h
View file @
66271925
...
@@ -148,6 +148,7 @@ typedef enum {
...
@@ -148,6 +148,7 @@ typedef enum {
GIT_STATUS_OPT_RENAMES_FROM_REWRITES
=
(
1u
<<
11
),
GIT_STATUS_OPT_RENAMES_FROM_REWRITES
=
(
1u
<<
11
),
GIT_STATUS_OPT_NO_REFRESH
=
(
1u
<<
12
),
GIT_STATUS_OPT_NO_REFRESH
=
(
1u
<<
12
),
GIT_STATUS_OPT_UPDATE_INDEX
=
(
1u
<<
13
),
GIT_STATUS_OPT_UPDATE_INDEX
=
(
1u
<<
13
),
GIT_STATUS_OPT_INCLUDE_UNREADABLE
=
(
1u
<<
14
),
}
git_status_opt_t
;
}
git_status_opt_t
;
#define GIT_STATUS_OPT_DEFAULTS \
#define GIT_STATUS_OPT_DEFAULTS \
...
...
src/status.c
View file @
66271925
...
@@ -313,6 +313,8 @@ int git_status_list_new(
...
@@ -313,6 +313,8 @@ int git_status_list_new(
diffopt
.
flags
=
diffopt
.
flags
|
GIT_DIFF_IGNORE_SUBMODULES
;
diffopt
.
flags
=
diffopt
.
flags
|
GIT_DIFF_IGNORE_SUBMODULES
;
if
((
flags
&
GIT_STATUS_OPT_UPDATE_INDEX
)
!=
0
)
if
((
flags
&
GIT_STATUS_OPT_UPDATE_INDEX
)
!=
0
)
diffopt
.
flags
=
diffopt
.
flags
|
GIT_DIFF_UPDATE_INDEX
;
diffopt
.
flags
=
diffopt
.
flags
|
GIT_DIFF_UPDATE_INDEX
;
if
((
flags
&
GIT_STATUS_OPT_INCLUDE_UNREADABLE
)
!=
0
)
diffopt
.
flags
=
diffopt
.
flags
|
GIT_DIFF_INCLUDE_UNREADABLE
;
if
((
flags
&
GIT_STATUS_OPT_RENAMES_FROM_REWRITES
)
!=
0
)
if
((
flags
&
GIT_STATUS_OPT_RENAMES_FROM_REWRITES
)
!=
0
)
findopt
.
flags
=
findopt
.
flags
|
findopt
.
flags
=
findopt
.
flags
|
...
...
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