Commit 2866c016853b5e5006d3e02758cbb8d9e1857347

Carlos Martín Nieto 2012-01-13T18:20:13

examples: use git_repository_odb instead of _database

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/examples/general.c b/examples/general.c
index c67ff6f..0a908bc 100644
--- a/examples/general.c
+++ b/examples/general.c
@@ -74,7 +74,7 @@ int main (int argc, char** argv)
   // repository.
   // [odb]: http://libgit2.github.com/libgit2/#HEAD/group/odb
   git_odb *odb;
-  odb = git_repository_database(repo);
+  git_repository_odb(&odb, repo);
 
   // #### Raw Object Reading