Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
111 lines (94 loc) · 2.91 KB

File metadata and controls

111 lines (94 loc) · 2.91 KB
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
/**
* 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 "nan.h"
#include "git2.h"
using namespace node;
using namespace v8;
class GitDiff : public ObjectWrap {
public:
static Persistent<FunctionTemplate> constructor_template;
static void Initialize (Handle<v8::Object> target);
git_diff_list *GetValue();
private:
GitDiff(git_diff_list *raw);
~GitDiff();
static NAN_METHOD(New);
static NAN_METHOD(TreeToTree);
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 NAN_METHOD(TreeToIndex);
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 NAN_METHOD(IndexToWorkdir);
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 NAN_METHOD(TreeToWorkdir);
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 NAN_METHOD(Merge);
static NAN_METHOD(FindSimilar);
static NAN_METHOD(StatusChar);
static NAN_METHOD(NumDeltas);
static NAN_METHOD(NumDeltasOfType);
static NAN_METHOD(GetPatch);
git_diff_list *raw;
};
#endif
Morty Proxy This is a proxified and sanitized view of the page, visit original site.