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
9dd4c3e8
Commit
9dd4c3e8
authored
Dec 31, 2011
by
Vicent Martí
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
config: Rename the `delete` callback name
`delete` is a reserved keyword in C++.
parent
06fcf057
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
include/git2/config.h
+1
-1
src/config.c
+1
-1
src/config_file.c
+1
-1
No files found.
include/git2/config.h
View file @
9dd4c3e8
...
...
@@ -30,7 +30,7 @@ struct git_config_file {
int
(
*
open
)(
struct
git_config_file
*
);
int
(
*
get
)(
struct
git_config_file
*
,
const
char
*
key
,
const
char
**
value
);
int
(
*
set
)(
struct
git_config_file
*
,
const
char
*
key
,
const
char
*
value
);
int
(
*
del
ete
)(
struct
git_config_file
*
,
const
char
*
key
);
int
(
*
del
)(
struct
git_config_file
*
,
const
char
*
key
);
int
(
*
foreach
)(
struct
git_config_file
*
,
int
(
*
fn
)(
const
char
*
,
const
char
*
,
void
*
),
void
*
data
);
void
(
*
free
)(
struct
git_config_file
*
);
};
...
...
src/config.c
View file @
9dd4c3e8
...
...
@@ -171,7 +171,7 @@ int git_config_delete(git_config *cfg, const char *name)
internal
=
git_vector_get
(
&
cfg
->
files
,
0
);
file
=
internal
->
file
;
return
file
->
del
ete
(
file
,
name
);
return
file
->
del
(
file
,
name
);
}
/**************
...
...
src/config_file.c
View file @
9dd4c3e8
...
...
@@ -452,7 +452,7 @@ int git_config_file__ondisk(git_config_file **out, const char *path)
backend
->
parent
.
open
=
config_open
;
backend
->
parent
.
get
=
config_get
;
backend
->
parent
.
set
=
config_set
;
backend
->
parent
.
del
ete
=
config_delete
;
backend
->
parent
.
del
=
config_delete
;
backend
->
parent
.
foreach
=
file_foreach
;
backend
->
parent
.
free
=
backend_free
;
...
...
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