wt-status.h 756 Bytes
Newer Older
1 2 3
#ifndef STATUS_H
#define STATUS_H

4 5
#include <stdio.h>

6 7 8 9 10
enum color_wt_status {
	WT_STATUS_HEADER,
	WT_STATUS_UPDATED,
	WT_STATUS_CHANGED,
	WT_STATUS_UNTRACKED,
11
	WT_STATUS_NOBRANCH,
12 13 14 15 16 17 18 19
};

struct wt_status {
	int is_initial;
	char *branch;
	const char *reference;
	int verbose;
	int amend;
20
	int untracked;
21
	int nowarn;
22 23 24 25
	/* These are computed during processing of the individual sections */
	int commitable;
	int workdir_dirty;
	int workdir_untracked;
26
	const char *index_file;
27
	FILE *fp;
28
	const char *prefix;
29 30
};

31
int git_status_config(const char *var, const char *value, void *cb);
32 33
extern int wt_status_use_color;
extern int wt_status_relative_paths;
34 35 36 37
void wt_status_prepare(struct wt_status *s);
void wt_status_print(struct wt_status *s);

#endif /* STATUS_H */