summaryrefslogtreecommitdiff
path: root/src/index.h
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2010-11-02 18:42:42 +0200
committerVicent Marti <tanoku@gmail.com>2010-11-02 18:42:42 +0200
commit6fd195d76c7f52baae5540e287affe2259900d36 (patch)
tree4dd644c5086dce17827f42b8c811049175da88f9 /src/index.h
parentd80e9d55aa2d0629f7f207db42762494075d7854 (diff)
downloadlibgit2-6fd195d76c7f52baae5540e287affe2259900d36.tar.gz
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/index.h')
-rw-r--r--src/index.h27
1 files changed, 2 insertions, 25 deletions
diff --git a/src/index.h b/src/index.h
index 44da78f9b..6a3c11e82 100644
--- a/src/index.h
+++ b/src/index.h
@@ -12,31 +12,6 @@
#define GIT_IDXENTRY_VALID (0x8000)
#define GIT_IDXENTRY_STAGESHIFT 12
-typedef struct {
- uint32_t seconds;
- uint32_t nanoseconds;
-} git_index_time;
-
-struct git_index_entry {
- git_index_time ctime;
- git_index_time mtime;
-
- uint32_t dev;
- uint32_t ino;
- uint32_t mode;
- uint32_t uid;
- uint32_t gid;
- uint32_t file_size;
-
- git_oid oid;
-
- uint16_t flags;
- uint16_t flags_extended;
-
- char *path;
-};
-
-
struct git_index_tree {
char *name;
@@ -53,6 +28,8 @@ typedef struct git_index_tree git_index_tree;
struct git_index {
char *index_file_path;
+ char *working_path;
+
time_t last_modified;
git_index_entry *entries;