forked from mgmorcos/nodegit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtree.h
More file actions
executable file
·113 lines (96 loc) · 3.13 KB
/
Copy pathtree.h
File metadata and controls
executable file
·113 lines (96 loc) · 3.13 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
/**
* This code is auto-generated; unless you know what you're doing, do not modify!
**/
#ifndef GITTREE_H
#define GITTREE_H
#include <v8.h>
#include <node.h>
#include <string>
#include "git2.h"
using namespace node;
using namespace v8;
class GitTree : public ObjectWrap {
public:
static Persistent<Function> constructor_template;
static void Initialize (Handle<v8::Object> target);
git_tree *GetValue();
static Handle<Value> New(void *raw);
private:
GitTree(git_tree *raw);
~GitTree();
static Handle<Value> New(const Arguments& args);
static Handle<Value> Oid(const Arguments& args);
static Handle<Value> Size(const Arguments& args);
static Handle<Value> EntryByName(const Arguments& args);
static Handle<Value> EntryByIndex(const Arguments& args);
static Handle<Value> EntryByOid(const Arguments& args);
static Handle<Value> GetEntry(const Arguments& args);
static void GetEntryWork(uv_work_t* req);
static void GetEntryAfterWork(uv_work_t* req);
struct GetEntryBaton {
uv_work_t request;
int error_code;
const git_error* error;
git_tree_entry * out;
Persistent<Value> rootReference;
git_tree * root;
Persistent<Value> pathReference;
const char * path;
Persistent<Function> callback;
};
static Handle<Value> Builder(const Arguments& args);
static Handle<Value> DiffTree(const Arguments& args);
static void DiffTreeWork(uv_work_t* req);
static void DiffTreeAfterWork(uv_work_t* req);
struct DiffTreeBaton {
uv_work_t request;
int error_code;
const git_error* error;
git_diff_list * diff;
Persistent<Value> repoReference;
git_repository * repo;
Persistent<Value> old_treeReference;
git_tree * old_tree;
Persistent<Value> new_treeReference;
git_tree * new_tree;
Persistent<Value> optsReference;
const git_diff_options * opts;
Persistent<Function> callback;
};
static Handle<Value> DiffIndex(const Arguments& args);
static void DiffIndexWork(uv_work_t* req);
static void DiffIndexAfterWork(uv_work_t* req);
struct DiffIndexBaton {
uv_work_t request;
int error_code;
const git_error* error;
git_diff_list * diff;
Persistent<Value> repoReference;
git_repository * repo;
Persistent<Value> old_treeReference;
git_tree * old_tree;
Persistent<Value> indexReference;
git_index * index;
Persistent<Value> optsReference;
const git_diff_options * opts;
Persistent<Function> callback;
};
static Handle<Value> DiffWorkDir(const Arguments& args);
static void DiffWorkDirWork(uv_work_t* req);
static void DiffWorkDirAfterWork(uv_work_t* req);
struct DiffWorkDirBaton {
uv_work_t request;
int error_code;
const git_error* error;
git_diff_list * diff;
Persistent<Value> repoReference;
git_repository * repo;
Persistent<Value> old_treeReference;
git_tree * old_tree;
Persistent<Value> optsReference;
const git_diff_options * opts;
Persistent<Function> callback;
};
git_tree *raw;
};
#endif