mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-07 16:02:50 +00:00
Merge pull request #1867 from ethomson/remove_not_delete
'del' instead of 'delete' for the poor C++ users
This commit is contained in:
commit
d89b8b60d1
@ -103,7 +103,7 @@ struct git_refdb_backend {
|
|||||||
* Deletes the given reference from the refdb. A refdb implementation
|
* Deletes the given reference from the refdb. A refdb implementation
|
||||||
* must provide this function.
|
* must provide this function.
|
||||||
*/
|
*/
|
||||||
int (*delete)(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.
|
* Suggests that the given refdb compress or optimize its references.
|
||||||
|
@ -201,5 +201,5 @@ int git_refdb_rename(
|
|||||||
int git_refdb_delete(struct git_refdb *db, const char *ref_name)
|
int git_refdb_delete(struct git_refdb *db, const char *ref_name)
|
||||||
{
|
{
|
||||||
assert(db && db->backend);
|
assert(db && db->backend);
|
||||||
return db->backend->delete(db->backend, ref_name);
|
return db->backend->del(db->backend, ref_name);
|
||||||
}
|
}
|
||||||
|
@ -1096,7 +1096,7 @@ int git_refdb_backend_fs(
|
|||||||
backend->parent.lookup = &refdb_fs_backend__lookup;
|
backend->parent.lookup = &refdb_fs_backend__lookup;
|
||||||
backend->parent.iterator = &refdb_fs_backend__iterator;
|
backend->parent.iterator = &refdb_fs_backend__iterator;
|
||||||
backend->parent.write = &refdb_fs_backend__write;
|
backend->parent.write = &refdb_fs_backend__write;
|
||||||
backend->parent.delete = &refdb_fs_backend__delete;
|
backend->parent.del = &refdb_fs_backend__delete;
|
||||||
backend->parent.rename = &refdb_fs_backend__rename;
|
backend->parent.rename = &refdb_fs_backend__rename;
|
||||||
backend->parent.compress = &refdb_fs_backend__compress;
|
backend->parent.compress = &refdb_fs_backend__compress;
|
||||||
backend->parent.free = &refdb_fs_backend__free;
|
backend->parent.free = &refdb_fs_backend__free;
|
||||||
|
Loading…
Reference in New Issue
Block a user