Commit e3f3868a by Edward Thomson

'del' instead of 'delete' for the poor C++ users

parent 10edb7a9
...@@ -103,7 +103,7 @@ struct git_refdb_backend { ...@@ -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( ...@@ -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( ...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment