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
e3f3868a
Commit
e3f3868a
authored
Sep 24, 2013
by
Edward Thomson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'del' instead of 'delete' for the poor C++ users
parent
10edb7a9
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
include/git2/sys/refdb_backend.h
+1
-1
src/refdb.c
+1
-1
src/refdb_fs.c
+1
-1
No files found.
include/git2/sys/refdb_backend.h
View file @
e3f3868a
...
...
@@ -103,7 +103,7 @@ struct git_refdb_backend {
* Deletes the given reference from the refdb. A refdb implementation
* must provide this function.
*/
int
(
*
del
ete
)(
git_refdb_backend
*
backend
,
const
char
*
ref_name
);
int
(
*
del
)(
git_refdb_backend
*
backend
,
const
char
*
ref_name
);
/**
* Suggests that the given refdb compress or optimize its references.
...
...
src/refdb.c
View file @
e3f3868a
...
...
@@ -201,5 +201,5 @@ int git_refdb_rename(
int
git_refdb_delete
(
struct
git_refdb
*
db
,
const
char
*
ref_name
)
{
assert
(
db
&&
db
->
backend
);
return
db
->
backend
->
del
ete
(
db
->
backend
,
ref_name
);
return
db
->
backend
->
del
(
db
->
backend
,
ref_name
);
}
src/refdb_fs.c
View file @
e3f3868a
...
...
@@ -1096,7 +1096,7 @@ int git_refdb_backend_fs(
backend
->
parent
.
lookup
=
&
refdb_fs_backend__lookup
;
backend
->
parent
.
iterator
=
&
refdb_fs_backend__iterator
;
backend
->
parent
.
write
=
&
refdb_fs_backend__write
;
backend
->
parent
.
del
ete
=
&
refdb_fs_backend__delete
;
backend
->
parent
.
del
=
&
refdb_fs_backend__delete
;
backend
->
parent
.
rename
=
&
refdb_fs_backend__rename
;
backend
->
parent
.
compress
=
&
refdb_fs_backend__compress
;
backend
->
parent
.
free
=
&
refdb_fs_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