Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2015-07-12 20:08:06 +0300
committerCarlos Martín Nieto <cmn@dwim.me>2015-07-12 20:08:06 +0300
commit01d0c02dbaa8856c4e2481ab1435bdf7df58690a (patch)
treecdf29c50e924cca1ba4f764a5fb7809cf9bfba67 /include
parenta522d8c1e72b3875805750cba9556fd303b9c8b2 (diff)
refdb: delete a ref's reflog upon deletion
Removing a reflog upon ref deletion is something which only some backends might wish to do. Backends which are database-backed may wish to archive a reflog, log-based ones may not need to do anything.
Diffstat (limited to 'include')
-rw-r--r--include/git2/sys/refdb_backend.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/git2/sys/refdb_backend.h b/include/git2/sys/refdb_backend.h
index d943e550f..9f2a99b7e 100644
--- a/include/git2/sys/refdb_backend.h
+++ b/include/git2/sys/refdb_backend.h
@@ -103,8 +103,9 @@ struct git_refdb_backend {
const git_signature *who, const char *message);
/**
- * Deletes the given reference from the refdb. A refdb implementation
- * must provide this function.
+ * Deletes the given reference (and if necessary its reflog)
+ * from the refdb. A refdb implementation must provide this
+ * function.
*/
int (*del)(git_refdb_backend *backend, const char *ref_name, const git_oid *old_id, const char *old_target);