-
Notifications
You must be signed in to change notification settings - Fork 1
/
a.h
65 lines (52 loc) · 834 Bytes
/
a.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#include <u.h>
#include <libc.h>
#include <bio.h>
#include <thread.h>
#include <9pclient.h>
#include <acme.h>
/* main window */
enum
{
Cdelete = 0,
Cstatus,
Clog,
Ccommit,
Cpush
};
extern Win *win;
void mkwin(void);
int getcmd(Event *e);
void eventloop(void);
/* git common */
int gitfd(char *argv[]);
void gitpipetowin(char *argv[]);
void gitstatus(void);
void gitlog(void);
void gitcommit(void);
void gitpush(void);
/* git status specific */
typedef struct Status Status;
enum
{
Staged = 0,
Modified,
Renamed,
Untracked
};
char *statestr[] = {
"Staged",
"Modified",
"Renamed",
"Untracked"
};
struct Status
{
int state;
char *filename;
char *extra;
Status *next;
};
Status* mkstatus(int s, char *f, char *e);
void deletestatus(Status *s);
Status* parsestatus(char *s);
void printstatus(Status *s);