summaryrefslogtreecommitdiff
path: root/src/refdb.c
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2013-04-19 17:17:44 -0700
committerRussell Belfer <rb@github.com>2013-04-21 11:57:21 -0700
commit4dcd87801972e1b880afa9cd0998842bae7af5b5 (patch)
tree9309689dad171921b5d91372ee78f264c79bbe3d /src/refdb.c
parent9233b3de4ea264a8ae846c784acc70c505022d8b (diff)
downloadlibgit2-4dcd87801972e1b880afa9cd0998842bae7af5b5.tar.gz
Move refdb_backend to include/git2/sys
This moves most of the refdb stuff over to the include/git2/sys directory, with some minor shifts in function organization. While I was making the necessary updates, I also removed the trailing whitespace in a few files that I modified just because I was there and it was bugging me.
Diffstat (limited to 'src/refdb.c')
-rw-r--r--src/refdb.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/refdb.c b/src/refdb.c
index 2a0fd702c..0675be638 100644
--- a/src/refdb.c
+++ b/src/refdb.c
@@ -7,15 +7,16 @@
#include "common.h"
#include "posix.h"
+
#include "git2/object.h"
#include "git2/refs.h"
#include "git2/refdb.h"
+#include "git2/sys/refdb_backend.h"
+
#include "hash.h"
#include "refdb.h"
#include "refs.h"
-#include "git2/refdb_backend.h"
-
int git_refdb_new(git_refdb **out, git_repository *repo)
{
git_refdb *db;
@@ -74,11 +75,11 @@ int git_refdb_set_backend(git_refdb *db, git_refdb_backend *backend)
int git_refdb_compress(git_refdb *db)
{
assert(db);
-
+
if (db->backend->compress) {
return db->backend->compress(db->backend);
}
-
+
return 0;
}