-
Notifications
You must be signed in to change notification settings - Fork 699
Expand file tree
/
Copy pathpatch.h
More file actions
42 lines (30 loc) · 802 Bytes
/
patch.h
File metadata and controls
42 lines (30 loc) · 802 Bytes
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
/**
* This code is auto-generated; unless you know what you're doing, do not modify!
**/
#ifndef GITPATCH_H
#define GITPATCH_H
#include <nan.h>
#include <string>
#include "git2.h"
using namespace node;
using namespace v8;
class GitPatch : public ObjectWrap {
public:
static Persistent<Function> constructor_template;
static void Initialize (Handle<v8::Object> target);
git_diff_patch *GetValue();
static Handle<Value> New(void *raw);
private:
GitPatch(git_diff_patch *raw);
~GitPatch();
static NAN_METHOD(New);
static NAN_METHOD(Delta);
static NAN_METHOD(Size);
static NAN_METHOD(Stats);
static NAN_METHOD(Hunk);
static NAN_METHOD(Lines);
static NAN_METHOD(Line);
static NAN_METHOD(ToString);
git_diff_patch *raw;
};
#endif