diff options
author | Carlos Martín Nieto <cmn@dwim.me> | 2015-07-12 19:08:06 +0200 |
---|---|---|
committer | Carlos Martín Nieto <cmn@dwim.me> | 2015-07-12 19:08:06 +0200 |
commit | 01d0c02dbaa8856c4e2481ab1435bdf7df58690a (patch) | |
tree | cdf29c50e924cca1ba4f764a5fb7809cf9bfba67 /include/git2 | |
parent | a522d8c1e72b3875805750cba9556fd303b9c8b2 (diff) | |
download | libgit2-01d0c02dbaa8856c4e2481ab1435bdf7df58690a.tar.gz |
refdb: delete a ref's reflog upon deletioncmn/reflog-del-backend
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/git2')
-rw-r--r-- | include/git2/sys/refdb_backend.h | 5 |
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); |