diff options
author | Vicent Marti <tanoku@gmail.com> | 2010-11-02 19:42:42 +0300 |
---|---|---|
committer | Vicent Marti <tanoku@gmail.com> | 2010-11-02 19:42:42 +0300 |
commit | 6fd195d76c7f52baae5540e287affe2259900d36 (patch) | |
tree | 4dd644c5086dce17827f42b8c811049175da88f9 /src/repository.h | |
parent | d80e9d55aa2d0629f7f207db42762494075d7854 (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.h | 9 |
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; }; |