FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
nodegit/include/object.h at v0.1.3 · 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
/
object.h
Copy path
More file actions
More file actions
Latest commit
History
History
History
54 lines (40 loc) · 1.17 KB
Breadcrumbs
nodegit
/
include
/
object.h
Copy path
File metadata and controls
54 lines (40 loc) · 1.17 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
/*
*
* This code is auto-generated; unless you know what you're doing, do not modify!
*
*/
#
ifndef
GITOBJECT_H
#
define
GITOBJECT_H
#
include
<
v8.h
>
#
include
<
node.h
>
#
include
<
string
>
#
include
"
git2.h
"
using
namespace
node
;
using
namespace
v8
;
class
GitObject
:
public
ObjectWrap
{
public:
static
Persistent<Function> constructor_template;
static
void
Initialize
(Handle<v8::Object> target);
git_object *
GetValue
();
static
Handle<Value>
New
(
void
*raw);
private:
GitObject
(git_object *raw);
~GitObject
();
static
Handle<Value>
New
(
const
Arguments& args);
static
Handle<Value>
Oid
(
const
Arguments& args);
static
Handle<Value>
Type
(
const
Arguments& args);
static
Handle<Value>
Peel
(
const
Arguments& args);
static
void
PeelWork
(
uv_work_t
* req);
static
void
PeelAfterWork
(
uv_work_t
* req);
struct
PeelBaton
{
uv_work_t
request;
int
error_code;
const
git_error* error;
git_object * peeled;
Persistent<Value> objectReference;
const
git_object * object;
Persistent<Value> target_typeReference;
git_otype target_type;
Persistent<Function> callback;
};
git_object *raw;
};
#
endif
Back
|
FazBrowse Home
|
New Git URL