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
d0868646
Commit
d0868646
authored
Jun 21, 2019
by
Patrick Steinhardt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
config: use `git_config_file` in favor of `struct config_file`
parent
8ee3d39a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
src/config_file.c
+5
-5
src/config_parse.h
+1
-1
No files found.
src/config_file.c
View file @
d0868646
...
...
@@ -44,7 +44,7 @@ typedef struct {
git_filebuf
locked_buf
;
git_buf
locked_content
;
struct
config_file
file
;
git_
config_file
file
;
}
diskfile_backend
;
typedef
struct
{
...
...
@@ -95,9 +95,9 @@ static git_config_entries *diskfile_entries_take(diskfile_header *h)
return
entries
;
}
static
void
config_file_clear
(
struct
config_file
*
file
)
static
void
config_file_clear
(
git_
config_file
*
file
)
{
struct
config_file
*
include
;
git_
config_file
*
include
;
uint32_t
i
;
if
(
file
==
NULL
)
...
...
@@ -133,7 +133,7 @@ static int config_open(git_config_backend *cfg, git_config_level_t level, const
return
res
;
}
static
int
config_is_modified
(
int
*
modified
,
struct
config_file
*
file
)
static
int
config_is_modified
(
int
*
modified
,
git_
config_file
*
file
)
{
git_config_file
*
include
;
git_buf
buf
=
GIT_BUF_INIT
;
...
...
@@ -659,7 +659,7 @@ static char *escape_value(const char *ptr)
static
int
parse_include
(
git_config_parser
*
reader
,
diskfile_parse_state
*
parse_data
,
const
char
*
file
)
{
struct
config_file
*
include
;
git_
config_file
*
include
;
git_buf
path
=
GIT_BUF_INIT
;
char
*
dir
;
int
result
;
...
...
src/config_parse.h
View file @
d0868646
...
...
@@ -22,7 +22,7 @@ typedef struct config_file {
}
git_config_file
;
typedef
struct
{
struct
config_file
*
file
;
git_
config_file
*
file
;
git_parse_ctx
ctx
;
}
git_config_parser
;
...
...
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