forked from nodegit/nodegit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.h
More file actions
executable file
·142 lines (122 loc) · 4.04 KB
/
Copy pathindex.h
File metadata and controls
executable file
·142 lines (122 loc) · 4.04 KB
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
/**
* This code is auto-generated; unless you know what you're doing, do not modify!
**/
#ifndef GITINDEX_H
#define GITINDEX_H
#include <v8.h>
#include <node.h>
#include <string>
#include "git2.h"
using namespace node;
using namespace v8;
class GitIndex : public ObjectWrap {
public:
static Persistent<Function> constructor_template;
static void Initialize (Handle<v8::Object> target);
git_index *GetValue();
static Handle<Value> New(void *raw);
private:
GitIndex(git_index *raw);
~GitIndex();
static Handle<Value> New(const Arguments& args);
static Handle<Value> Open(const Arguments& args);
static void OpenWork(uv_work_t* req);
static void OpenAfterWork(uv_work_t* req);
struct OpenBaton {
uv_work_t request;
int error_code;
const git_error* error;
git_index * out;
Persistent<Value> index_pathReference;
const char * index_path;
Persistent<Function> callback;
};
static Handle<Value> Read(const Arguments& args);
static void ReadWork(uv_work_t* req);
static void ReadAfterWork(uv_work_t* req);
struct ReadBaton {
uv_work_t request;
int error_code;
const git_error* error;
Persistent<Value> indexReference;
git_index * index;
Persistent<Function> callback;
};
static Handle<Value> Write(const Arguments& args);
static void WriteWork(uv_work_t* req);
static void WriteAfterWork(uv_work_t* req);
struct WriteBaton {
uv_work_t request;
int error_code;
const git_error* error;
Persistent<Value> indexReference;
git_index * index;
Persistent<Function> callback;
};
static Handle<Value> ReadTree(const Arguments& args);
static void ReadTreeWork(uv_work_t* req);
static void ReadTreeAfterWork(uv_work_t* req);
struct ReadTreeBaton {
uv_work_t request;
int error_code;
const git_error* error;
Persistent<Value> indexReference;
git_index * index;
Persistent<Value> treeReference;
const git_tree * tree;
Persistent<Function> callback;
};
static Handle<Value> WriteTree(const Arguments& args);
static void WriteTreeWork(uv_work_t* req);
static void WriteTreeAfterWork(uv_work_t* req);
struct WriteTreeBaton {
uv_work_t request;
int error_code;
const git_error* error;
git_oid * out;
Persistent<Value> indexReference;
git_index * index;
Persistent<Function> callback;
};
static Handle<Value> Size(const Arguments& args);
static Handle<Value> Clear(const Arguments& args);
static Handle<Value> Entry(const Arguments& args);
static Handle<Value> Remove(const Arguments& args);
static Handle<Value> RemoveDirectory(const Arguments& args);
static Handle<Value> AddBypath(const Arguments& args);
static void AddBypathWork(uv_work_t* req);
static void AddBypathAfterWork(uv_work_t* req);
struct AddBypathBaton {
uv_work_t request;
int error_code;
const git_error* error;
Persistent<Value> indexReference;
git_index * index;
Persistent<Value> pathReference;
const char * path;
Persistent<Function> callback;
};
static Handle<Value> RemoveBypath(const Arguments& args);
static Handle<Value> Find(const Arguments& args);
static Handle<Value> ConflictRemove(const Arguments& args);
static Handle<Value> ConflictCleanup(const Arguments& args);
static Handle<Value> HasConflicts(const Arguments& args);
static Handle<Value> IndexToWorkdir(const Arguments& args);
static void IndexToWorkdirWork(uv_work_t* req);
static void IndexToWorkdirAfterWork(uv_work_t* req);
struct IndexToWorkdirBaton {
uv_work_t request;
int error_code;
const git_error* error;
git_diff_list * diff;
Persistent<Value> repoReference;
git_repository * repo;
Persistent<Value> indexReference;
git_index * index;
Persistent<Value> optsReference;
const git_diff_options * opts;
Persistent<Function> callback;
};
git_index *raw;
};
#endif