diff options
author | Carlos Martín Nieto <cmn@dwim.me> | 2013-11-23 14:13:01 +0100 |
---|---|---|
committer | Carlos Martín Nieto <cmn@dwim.me> | 2013-12-09 15:55:11 +0100 |
commit | 8d5ec9106afbca346a8def84ef20de0a7ba2240a (patch) | |
tree | 83dea84e33442fa8e4c58321a246b08b52c5fc0e /include/git2/sys/refdb_backend.h | |
parent | 6f13a30565fc3891c0df161945097b316945fca7 (diff) | |
download | libgit2-8d5ec9106afbca346a8def84ef20de0a7ba2240a.tar.gz |
refs: expose a way to ensure a ref has a log
Sometimes (e.g. stash) we want to make sure that a log will be written,
even if it's not in one of the standard locations. Let's make that
easier.
Diffstat (limited to 'include/git2/sys/refdb_backend.h')
-rw-r--r-- | include/git2/sys/refdb_backend.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/git2/sys/refdb_backend.h b/include/git2/sys/refdb_backend.h index 131e1b5d0..1485ed73a 100644 --- a/include/git2/sys/refdb_backend.h +++ b/include/git2/sys/refdb_backend.h @@ -117,6 +117,12 @@ struct git_refdb_backend { int (*compress)(git_refdb_backend *backend); /** + * Make sure a particular reference will have a reflog which + * will be appended to on writes. + */ + int (*ensure_log)(git_refdb_backend *backend, const char *refname); + + /** * Frees any resources held by the refdb. A refdb implementation may * provide this function; if it is not provided, nothing will be done. */ |