FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
nodegit/include/submodule.h at v0.1.4 · nodegit/nodegit · GitHub
nodegit
nodegit
Repository navigation
Code
Issues
344
(344)
Pull requests
21
(21)
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
nodegit
/
include
/
submodule.h
Copy path
More file actions
More file actions
Latest commit
History
History
History
213 lines (185 loc) · 4.81 KB
Breadcrumbs
nodegit
/
include
/
submodule.h
Copy path
File metadata and controls
213 lines (185 loc) · 4.81 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
/*
*
* This code is auto-generated; unless you know what you're doing, do not modify!
*
*/
#
ifndef
GITSUBMODULE_H
#
define
GITSUBMODULE_H
#
include
<
nan.h
>
#
include
<
string
>
#
include
"
git2.h
"
using
namespace
node
;
using
namespace
v8
;
class
GitSubmodule
:
public
ObjectWrap
{
public:
static
Persistent<Function> constructor_template;
static
void
Initialize
(Handle<v8::Object> target);
git_submodule *
GetValue
();
static
Handle<Value>
New
(
void
*raw);
private:
GitSubmodule
(git_submodule *raw);
~GitSubmodule
();
static
NAN_METHOD
(New);
struct
AddFinalizeBaton
{
int
error_code;
const
git_error* error;
git_submodule * submodule;
};
class
AddFinalizeWorker
:
public
NanAsyncWorker
{
public:
AddFinalizeWorker
(
AddFinalizeBaton *_baton,
NanCallback *callback
) : NanAsyncWorker(callback)
, baton(_baton) {};
~AddFinalizeWorker
() {};
void
Execute
();
void
HandleOKCallback
();
private:
AddFinalizeBaton *baton;
};
static
NAN_METHOD
(AddFinalize);
struct
AddToIndexBaton
{
int
error_code;
const
git_error* error;
git_submodule * submodule;
int
write_index;
};
class
AddToIndexWorker
:
public
NanAsyncWorker
{
public:
AddToIndexWorker
(
AddToIndexBaton *_baton,
NanCallback *callback
) : NanAsyncWorker(callback)
, baton(_baton) {};
~AddToIndexWorker
() {};
void
Execute
();
void
HandleOKCallback
();
private:
AddToIndexBaton *baton;
};
static
NAN_METHOD
(AddToIndex);
struct
SaveBaton
{
int
error_code;
const
git_error* error;
git_submodule * submodule;
};
class
SaveWorker
:
public
NanAsyncWorker
{
public:
SaveWorker
(
SaveBaton *_baton,
NanCallback *callback
) : NanAsyncWorker(callback)
, baton(_baton) {};
~SaveWorker
() {};
void
Execute
();
void
HandleOKCallback
();
private:
SaveBaton *baton;
};
static
NAN_METHOD
(Save);
static
NAN_METHOD
(Name);
static
NAN_METHOD
(Path);
static
NAN_METHOD
(Url);
static
NAN_METHOD
(SetUrl);
static
NAN_METHOD
(IndexId);
static
NAN_METHOD
(HeadId);
struct
InitBaton
{
int
error_code;
const
git_error* error;
git_submodule * submodule;
int
overwrite;
};
class
InitWorker
:
public
NanAsyncWorker
{
public:
InitWorker
(
InitBaton *_baton,
NanCallback *callback
) : NanAsyncWorker(callback)
, baton(_baton) {};
~InitWorker
() {};
void
Execute
();
void
HandleOKCallback
();
private:
InitBaton *baton;
};
static
NAN_METHOD
(Init);
struct
SyncBaton
{
int
error_code;
const
git_error* error;
git_submodule * submodule;
};
class
SyncWorker
:
public
NanAsyncWorker
{
public:
SyncWorker
(
SyncBaton *_baton,
NanCallback *callback
) : NanAsyncWorker(callback)
, baton(_baton) {};
~SyncWorker
() {};
void
Execute
();
void
HandleOKCallback
();
private:
SyncBaton *baton;
};
static
NAN_METHOD
(Sync);
struct
OpenBaton
{
int
error_code;
const
git_error* error;
git_repository * repo;
git_submodule * submodule;
};
class
OpenWorker
:
public
NanAsyncWorker
{
public:
OpenWorker
(
OpenBaton *_baton,
NanCallback *callback
) : NanAsyncWorker(callback)
, baton(_baton) {};
~OpenWorker
() {};
void
Execute
();
void
HandleOKCallback
();
private:
OpenBaton *baton;
};
static
NAN_METHOD
(Open);
struct
ReloadBaton
{
int
error_code;
const
git_error* error;
git_submodule * submodule;
};
class
ReloadWorker
:
public
NanAsyncWorker
{
public:
ReloadWorker
(
ReloadBaton *_baton,
NanCallback *callback
) : NanAsyncWorker(callback)
, baton(_baton) {};
~ReloadWorker
() {};
void
Execute
();
void
HandleOKCallback
();
private:
ReloadBaton *baton;
};
static
NAN_METHOD
(Reload);
struct
StatusBaton
{
int
error_code;
const
git_error* error;
unsigned
int
* status;
git_submodule * submodule;
};
class
StatusWorker
:
public
NanAsyncWorker
{
public:
StatusWorker
(
StatusBaton *_baton,
NanCallback *callback
) : NanAsyncWorker(callback)
, baton(_baton) {};
~StatusWorker
() {};
void
Execute
();
void
HandleOKCallback
();
private:
StatusBaton *baton;
};
static
NAN_METHOD
(Status);
git_submodule *raw;
};
#
endif
Back
|
FazBrowse Home
|
New Git URL