Rewrite index diffing to use git-status
[tig.git] / include / tig / repo.h
blob55d5f1e42c0b4a72c8473f7fec50f1b4729a198f
1 /* Copyright (c) 2006-2014 Jonas Fonseca <jonas.fonseca@gmail.com>
3 * This program is free software; you can redistribute it and/or
4 * modify it under the terms of the GNU General Public License as
5 * published by the Free Software Foundation; either version 2 of
6 * the License, or (at your option) any later version.
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
14 #ifndef TIG_REPO_H
15 #define TIG_REPO_H
17 #include "tig/tig.h"
19 struct repo_info {
20 char head[SIZEOF_REF];
21 char remote[SIZEOF_REF];
22 char cdup[SIZEOF_STR];
23 char prefix[SIZEOF_STR];
24 char git_dir[SIZEOF_STR];
25 bool is_inside_work_tree;
28 extern struct repo_info repo;
30 int load_repo_info(void);
32 struct index_diff {
33 int staged;
34 int unstaged;
35 int untracked;
38 bool index_diff(struct index_diff *diff, bool untracked, bool count_all);
39 bool update_index(void);
41 #endif
42 /* vim: set ts=8 sw=8 noexpandtab: */