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
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
10 deletions
+4
-10
src/config.c
+4
-10
No files found.
src/config.c
View file @
e4fda954
...
@@ -534,8 +534,7 @@ int git_config_get_multivar(
...
@@ -534,8 +534,7 @@ int git_config_get_multivar(
{
{
file_internal
*
internal
;
file_internal
*
internal
;
git_config_backend
*
file
;
git_config_backend
*
file
;
int
ret
=
GIT_ENOTFOUND
;
int
ret
=
GIT_ENOTFOUND
,
err
;
int
err
;
size_t
i
;
size_t
i
;
/*
/*
...
@@ -548,16 +547,11 @@ int git_config_get_multivar(
...
@@ -548,16 +547,11 @@ int git_config_get_multivar(
continue
;
continue
;
file
=
internal
->
file
;
file
=
internal
->
file
;
err
=
file
->
get_multivar
(
file
,
name
,
regexp
,
cb
,
payload
);
if
(
!
(
err
=
file
->
get_multivar
(
file
,
name
,
regexp
,
cb
,
payload
)))
switch
(
err
)
{
ret
=
0
;
case
GIT_OK
:
else
if
(
err
!=
GIT_ENOTFOUND
)
ret
=
GIT_OK
;
case
GIT_ENOTFOUND
:
break
;
default:
return
err
;
return
err
;
}
}
}
return
(
ret
==
GIT_ENOTFOUND
)
?
config_error_notfound
(
name
)
:
0
;
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