Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2010-11-02 19:42:42 +0300
committerVicent Marti <tanoku@gmail.com>2010-11-02 19:42:42 +0300
commit6fd195d76c7f52baae5540e287affe2259900d36 (patch)
tree4dd644c5086dce17827f42b8c811049175da88f9 /src/repository.h
parentd80e9d55aa2d0629f7f207db42762494075d7854 (diff)
Change git_repository initialization to use a path
The constructor to git_repository is now called 'git_repository_open(path)' and takes a path to a git repository instead of an existing ODB object. Unit tests have been updated accordingly and the two test repositories have been merged into one. Signed-off-by: Vicent Marti <tanoku@gmail.com>
Diffstat (limited to 'src/repository.h')
-rw-r--r--src/repository.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/repository.h b/src/repository.h
index 0ccfc5e92..ca76d4558 100644
--- a/src/repository.h
+++ b/src/repository.h
@@ -7,6 +7,7 @@
#include "git/repository.h"
#include "hashtable.h"
+#include "index.h"
typedef struct {
git_rawobj raw;
@@ -24,7 +25,15 @@ struct git_object {
struct git_repository {
git_odb *db;
+ git_index *index;
git_hashtable *objects;
+
+ char *path_repository;
+ char *path_index;
+ char *path_odb;
+ char *path_workdir;
+
+ unsigned is_bare:1;
};