index.h 589 Bytes
Newer Older
Vicent Marti committed
1 2 3 4 5 6
/*
 * Copyright (C) 2009-2011 the libgit2 contributors
 *
 * This file is part of libgit2, distributed under the GNU GPL v2 with
 * a Linking Exception. For full terms see the included COPYING file.
 */
7 8 9 10
#ifndef INCLUDE_index_h__
#define INCLUDE_index_h__

#include "fileops.h"
11
#include "filebuf.h"
12
#include "vector.h"
13
#include "tree-cache.h"
14 15
#include "git2/odb.h"
#include "git2/index.h"
16 17

struct git_index {
18
	git_repository *repository;
19
	char *index_file_path;
20

21
	time_t last_modified;
22
	git_vector entries;
23

24
	unsigned int on_disk:1;
25
	git_tree_cache *tree;
26 27

	git_vector unmerged;
28 29 30
};

#endif