forked from nodegit/nodegit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrevwalk.h
More file actions
executable file
·160 lines (138 loc) · 4.34 KB
/
Copy pathrevwalk.h
File metadata and controls
executable file
·160 lines (138 loc) · 4.34 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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
/**
* This code is auto-generated; unless you know what you're doing, do not modify!
**/
#ifndef GITREVWALK_H
#define GITREVWALK_H
#include <v8.h>
#include <node.h>
#include <string>
#include "git2.h"
using namespace node;
using namespace v8;
class GitRevWalk : public ObjectWrap {
public:
static Persistent<Function> constructor_template;
static void Initialize (Handle<v8::Object> target);
git_revwalk *GetValue();
static Handle<Value> New(void *raw);
private:
GitRevWalk(git_revwalk *raw);
~GitRevWalk();
static Handle<Value> New(const Arguments& args);
static Handle<Value> Reset(const Arguments& args);
static Handle<Value> Push(const Arguments& args);
static void PushWork(uv_work_t* req);
static void PushAfterWork(uv_work_t* req);
struct PushBaton {
uv_work_t request;
int error_code;
const git_error* error;
Persistent<Value> walkReference;
git_revwalk * walk;
Persistent<Value> idReference;
const git_oid * id;
Persistent<Function> callback;
};
static Handle<Value> PushGlob(const Arguments& args);
static void PushGlobWork(uv_work_t* req);
static void PushGlobAfterWork(uv_work_t* req);
struct PushGlobBaton {
uv_work_t request;
int error_code;
const git_error* error;
Persistent<Value> walkReference;
git_revwalk * walk;
Persistent<Value> globReference;
const char * glob;
Persistent<Function> callback;
};
static Handle<Value> PushHead(const Arguments& args);
static void PushHeadWork(uv_work_t* req);
static void PushHeadAfterWork(uv_work_t* req);
struct PushHeadBaton {
uv_work_t request;
int error_code;
const git_error* error;
Persistent<Value> walkReference;
git_revwalk * walk;
Persistent<Function> callback;
};
static Handle<Value> Hide(const Arguments& args);
static void HideWork(uv_work_t* req);
static void HideAfterWork(uv_work_t* req);
struct HideBaton {
uv_work_t request;
int error_code;
const git_error* error;
Persistent<Value> walkReference;
git_revwalk * walk;
Persistent<Value> commit_idReference;
const git_oid * commit_id;
Persistent<Function> callback;
};
static Handle<Value> HideGlob(const Arguments& args);
static void HideGlobWork(uv_work_t* req);
static void HideGlobAfterWork(uv_work_t* req);
struct HideGlobBaton {
uv_work_t request;
int error_code;
const git_error* error;
Persistent<Value> walkReference;
git_revwalk * walk;
Persistent<Value> globReference;
const char * glob;
Persistent<Function> callback;
};
static Handle<Value> HideHead(const Arguments& args);
static void HideHeadWork(uv_work_t* req);
static void HideHeadAfterWork(uv_work_t* req);
struct HideHeadBaton {
uv_work_t request;
int error_code;
const git_error* error;
Persistent<Value> walkReference;
git_revwalk * walk;
Persistent<Function> callback;
};
static Handle<Value> PushRef(const Arguments& args);
static void PushRefWork(uv_work_t* req);
static void PushRefAfterWork(uv_work_t* req);
struct PushRefBaton {
uv_work_t request;
int error_code;
const git_error* error;
Persistent<Value> walkReference;
git_revwalk * walk;
Persistent<Value> refnameReference;
const char * refname;
Persistent<Function> callback;
};
static Handle<Value> HideRef(const Arguments& args);
static void HideRefWork(uv_work_t* req);
static void HideRefAfterWork(uv_work_t* req);
struct HideRefBaton {
uv_work_t request;
int error_code;
const git_error* error;
Persistent<Value> walkReference;
git_revwalk * walk;
Persistent<Value> refnameReference;
const char * refname;
Persistent<Function> callback;
};
static Handle<Value> Next(const Arguments& args);
static void NextWork(uv_work_t* req);
static void NextAfterWork(uv_work_t* req);
struct NextBaton {
uv_work_t request;
int error_code;
const git_error* error;
git_oid * out;
Persistent<Value> walkReference;
git_revwalk * walk;
Persistent<Function> callback;
};
static Handle<Value> Sorting(const Arguments& args);
git_revwalk *raw;
};
#endif