]>
Commit | Line | Data |
---|---|---|
bb742ede VM |
1 | /* |
2 | * Copyright (C) 2009-2011 the libgit2 contributors | |
3 | * | |
4 | * This file is part of libgit2, distributed under the GNU GPL v2 with | |
5 | * a Linking Exception. For full terms see the included COPYING file. | |
6 | */ | |
68535125 VM |
7 | #ifndef INCLUDE_index_h__ |
8 | #define INCLUDE_index_h__ | |
9 | ||
10 | #include "fileops.h" | |
817c2820 | 11 | #include "filebuf.h" |
c4034e63 | 12 | #include "vector.h" |
b4171320 | 13 | #include "tree-cache.h" |
44908fe7 VM |
14 | #include "git2/odb.h" |
15 | #include "git2/index.h" | |
68535125 | 16 | |
01ad7b3a BR |
17 | #define GIT_INDEX_FILE "index" |
18 | #define GIT_INDEX_FILE_MODE 0666 | |
19 | ||
68535125 | 20 | struct git_index { |
9462c471 VM |
21 | git_refcount rc; |
22 | ||
68535125 | 23 | char *index_file_path; |
6fd195d7 | 24 | |
68535125 | 25 | time_t last_modified; |
c4034e63 | 26 | git_vector entries; |
68535125 | 27 | |
86d7e1ca | 28 | unsigned int on_disk:1; |
b4171320 | 29 | git_tree_cache *tree; |
4c0b6a6d JP |
30 | |
31 | git_vector unmerged; | |
68535125 VM |
32 | }; |
33 | ||
68535125 | 34 | #endif |