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
71b84c63
Commit
71b84c63
authored
Sep 18, 2011
by
Vicent Martí
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #408 from schu/fixup-status
Fixup status.c
parents
3125929b
855f0660
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
src/status.c
+3
-2
No files found.
src/status.c
View file @
71b84c63
...
@@ -393,7 +393,8 @@ static int dirent_cb(void *state, char *a)
...
@@ -393,7 +393,8 @@ static int dirent_cb(void *state, char *a)
pa
=
((
cmpma
>=
0
)
&&
(
cmpai
<=
0
))
?
a_name
:
NULL
;
pa
=
((
cmpma
>=
0
)
&&
(
cmpai
<=
0
))
?
a_name
:
NULL
;
pi
=
((
cmpmi
>=
0
)
&&
(
cmpai
>=
0
))
?
i_name
:
NULL
;
pi
=
((
cmpmi
>=
0
)
&&
(
cmpai
>=
0
))
?
i_name
:
NULL
;
error
=
determine_status
(
st
,
pm
!=
NULL
,
pi
!=
NULL
,
pa
!=
NULL
,
m
,
entry
,
a
,
status_path
(
pm
,
pi
,
pa
),
path_type
);
if
((
error
=
determine_status
(
st
,
pm
!=
NULL
,
pi
!=
NULL
,
pa
!=
NULL
,
m
,
entry
,
a
,
status_path
(
pm
,
pi
,
pa
),
path_type
))
<
GIT_SUCCESS
)
return
git__rethrow
(
error
,
"An error occured while determining the status of '%s'"
,
a
);
if
(
pa
!=
NULL
)
if
(
pa
!=
NULL
)
return
GIT_SUCCESS
;
return
GIT_SUCCESS
;
...
@@ -503,7 +504,7 @@ static int recurse_tree_entry(git_tree *tree, struct status_entry *e, const char
...
@@ -503,7 +504,7 @@ static int recurse_tree_entry(git_tree *tree, struct status_entry *e, const char
/* Retreive subtree */
/* Retreive subtree */
if
((
error
=
git_tree_lookup
(
&
subtree
,
tree
->
object
.
repo
,
&
tree_entry
->
oid
))
<
GIT_SUCCESS
)
if
((
error
=
git_tree_lookup
(
&
subtree
,
tree
->
object
.
repo
,
&
tree_entry
->
oid
))
<
GIT_SUCCESS
)
return
git__throw
(
GIT_EOBJCORRUPTED
,
"Can't find tree object '%s'"
,
&
tree_entry
->
filename
);
return
git__throw
(
GIT_EOBJCORRUPTED
,
"Can't find tree object '%s'"
,
tree_entry
->
filename
);
error
=
recurse_tree_entry
(
subtree
,
e
,
dir_sep
+
1
);
error
=
recurse_tree_entry
(
subtree
,
e
,
dir_sep
+
1
);
git_tree_close
(
subtree
);
git_tree_close
(
subtree
);
...
...
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