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
e4fda954
Commit
e4fda954
authored
Jul 09, 2013
by
Russell Belfer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
A little git_config_get_multivar code cleanup
parent
7b5c0d18
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
11 deletions
+5
-11
src/config.c
+5
-11
No files found.
src/config.c
View file @
e4fda954
...
...
@@ -534,8 +534,7 @@ int git_config_get_multivar(
{
file_internal
*
internal
;
git_config_backend
*
file
;
int
ret
=
GIT_ENOTFOUND
;
int
err
;
int
ret
=
GIT_ENOTFOUND
,
err
;
size_t
i
;
/*
...
...
@@ -548,15 +547,10 @@ int git_config_get_multivar(
continue
;
file
=
internal
->
file
;
err
=
file
->
get_multivar
(
file
,
name
,
regexp
,
cb
,
payload
);
switch
(
err
)
{
case
GIT_OK
:
ret
=
GIT_OK
;
case
GIT_ENOTFOUND
:
break
;
default:
return
err
;
}
if
(
!
(
err
=
file
->
get_multivar
(
file
,
name
,
regexp
,
cb
,
payload
)))
ret
=
0
;
else
if
(
err
!=
GIT_ENOTFOUND
)
return
err
;
}
return
(
ret
==
GIT_ENOTFOUND
)
?
config_error_notfound
(
name
)
:
0
;
...
...
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