-
Notifications
You must be signed in to change notification settings - Fork 699
Expand file tree
/
Copy pathdiff.h
More file actions
109 lines (93 loc) · 3.16 KB
/
diff.h
File metadata and controls
109 lines (93 loc) · 3.16 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
/**
* This code is auto-generated; unless you know what you're doing, do not modify!
**/
#ifndef GITDIFF_H
#define GITDIFF_H
#include <v8.h>
#include <node.h>
#include <string>
#include "git2.h"
using namespace node;
using namespace v8;
class GitDiff : public ObjectWrap {
public:
static Persistent<Function> constructor_template;
static void Initialize (Handle<v8::Object> target);
git_diff_list *GetValue();
private:
GitDiff(git_diff_list *raw);
~GitDiff();
static Handle<Value> New(const Arguments& args);
static Handle<Value> TreeToTree(const Arguments& args);
static void TreeToTreeWork(uv_work_t* req);
static void TreeToTreeAfterWork(uv_work_t* req);
struct TreeToTreeBaton {
uv_work_t request;
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> TreeToIndex(const Arguments& args);
static void TreeToIndexWork(uv_work_t* req);
static void TreeToIndexAfterWork(uv_work_t* req);
struct TreeToIndexBaton {
uv_work_t request;
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> IndexToWorkdir(const Arguments& args);
static void IndexToWorkdirWork(uv_work_t* req);
static void IndexToWorkdirAfterWork(uv_work_t* req);
struct IndexToWorkdirBaton {
uv_work_t request;
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;
};
static Handle<Value> TreeToWorkdir(const Arguments& args);
static void TreeToWorkdirWork(uv_work_t* req);
static void TreeToWorkdirAfterWork(uv_work_t* req);
struct TreeToWorkdirBaton {
uv_work_t request;
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;
};
static Handle<Value> Merge(const Arguments& args);
static Handle<Value> FindSimilar(const Arguments& args);
static Handle<Value> StatusChar(const Arguments& args);
static Handle<Value> NumDeltas(const Arguments& args);
static Handle<Value> NumDeltasOfType(const Arguments& args);
static Handle<Value> GetPatch(const Arguments& args);
git_diff_list *raw;
};
#endif