summaryrefslogtreecommitdiff
path: root/src/refdb.h
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2013-08-19 13:01:49 +0200
committerCarlos Martín Nieto <cmn@dwim.me>2013-10-02 06:53:24 +0200
commitb976f3c2c228413d124be8fea3280a44bd5e3136 (patch)
tree32e6712711c61a5d27bbed347901afc242bdc8dd /src/refdb.h
parent71e33d2649f990086237a6cd0fdb7f7d6f742b51 (diff)
downloadlibgit2-b976f3c2c228413d124be8fea3280a44bd5e3136.tar.gz
reflog: move the reflog implementation into refdb_fs
References and their logs are logically coupled, let's make it so in the code by moving the fs-based reflog implementation to live next to the fs-based refs one. As part of the change, make the function take names rather than references, as only the names are relevant when looking up and handling reflogs.
Diffstat (limited to 'src/refdb.h')
-rw-r--r--src/refdb.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/refdb.h b/src/refdb.h
index 3aea37b62..0ee60d911 100644
--- a/src/refdb.h
+++ b/src/refdb.h
@@ -43,4 +43,8 @@ void git_refdb_iterator_free(git_reference_iterator *iter);
int git_refdb_write(git_refdb *refdb, git_reference *ref, int force);
int git_refdb_delete(git_refdb *refdb, const char *ref_name);
+int git_refdb_reflog_read(git_reflog **out, git_refdb *db, const char *name);
+int git_refdb_reflog_write(git_reflog *reflog);
+
+
#endif