From f21051297cc698644ea0dc9c7122ec944dba2863 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Mart=C3=ADn=20Nieto?= Date: Sat, 23 Nov 2013 14:39:53 +0100 Subject: refs: expose has_log() on the backend The frontend used to look at the file directly, but that's obviously not the right thing to do. Expose it on the backend and use that function instead. --- include/git2/sys/refdb_backend.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/git2/sys/refdb_backend.h') diff --git a/include/git2/sys/refdb_backend.h b/include/git2/sys/refdb_backend.h index 1485ed73a..5bbd4ba4c 100644 --- a/include/git2/sys/refdb_backend.h +++ b/include/git2/sys/refdb_backend.h @@ -116,6 +116,11 @@ struct git_refdb_backend { */ int (*compress)(git_refdb_backend *backend); + /** + * Query whether a particular reference has a log (may be empty) + */ + int (*has_log)(git_refdb_backend *backend, const char *refname); + /** * Make sure a particular reference will have a reflog which * will be appended to on writes. -- cgit v1.2.1