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
executable file
·
78 lines (71 loc) · 1.64 KB

File metadata and controls

executable file
·
78 lines (71 loc) · 1.64 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
/*
* Copyright 2011, Tim Branyen @tbranyen <tim@tabdeveloper.com>
* Dual licensed under the MIT and GPL licenses.
*/
#ifndef ERROR_H
#define ERROR_H
#include <node.h>
#include <node_events.h>
#include "../vendor/libgit2/include/git2.h"
using namespace node;
/**
* Class: GitError
* Wrapper for libgit2 git_error.
*/
class GitError : public ObjectWrap {
public:
/**
* Variable: constructor_template
* Used to create Node.js constructor.
*/
static v8::Persistent<v8::FunctionTemplate> constructor_template;
/**
* Function: Initialize
* Used to intialize the EventEmitter from Node.js
*
* Parameters:
* target - v8::Object the Node.js global module object
*/
static void Initialize(v8::Handle<v8::Object> target);
/**
* Function: StrError
* Get a read-only buffer with the raw content of a blob.
*
* Parameters:
* err - A signed int error code
*
* Returns:
* a string explaining the error code.
*/
const char* StrError(int err);
protected:
/**
* Constructor: GitError
*/
GitError() {};
/**
* Deconstructor: GitError
*/
~GitError() {};
/**
* Function: New
*
* Parameters:
* args v8::Arguments function call
*
* Returns:
* v8::Object args.This()
*/
static v8::Handle<v8::Value> New(const v8::Arguments& args);
/**
* Function: StrError
*
* Parameters:
* args v8::Arguments function call
*
* Returns:
* v8::Object args.This()
*/
static v8::Handle<v8::Value> StrError(const v8::Arguments& args);
};
#endif
Morty Proxy This is a proxified and sanitized view of the page, visit original site.