FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
nodegit/include/tree_entry.h at v0.0.72 · nodegit/nodegit · GitHub
nodegit
nodegit
Repository navigation
Code
Issues
344
(344)
Pull requests
21
(21)
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
nodegit
/
include
/
tree_entry.h
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
67 lines (55 loc) · 1.46 KB
Breadcrumbs
nodegit
/
include
/
tree_entry.h
Copy path
File metadata and controls
executable file
·
67 lines (55 loc) · 1.46 KB
Raw
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
/*
Copyright (c) 2011, Tim Branyen @tbranyen <tim@tabdeveloper.com>
*/
#
ifndef
GITTREEENTRY_H
#
define
GITTREEENTRY_H
#
include
<
v8.h
>
#
include
<
node.h
>
#
include
"
../vendor/libgit2/include/git2.h
"
#
include
"
repo.h
"
#
include
"
tree.h
"
#
include
"
oid.h
"
#
include
"
object.h
"
using
namespace
v8
;
using
namespace
node
;
/*
*
* Class wrapper for libgit2 git_tree_entry
*/
class
GitTreeEntry
: ObjectWrap {
public:
/*
*
* v8::FunctionTemplate used to create Node.js constructor
*/
static
Persistent<FunctionTemplate> constructor_template;
/*
*
* Used to intialize the EventEmitter from Node.js
*
* @param target v8::Object the Node.js module object
*/
static
void
Initialize
(Handle<v8::Object> target);
/*
*
* Accessor for GitTreeEntry
*
* @return the internal git_tree_entry reference
*/
git_tree_entry*
GetValue
();
/*
*
* Mutator for GitTreeEntry
*
* @param obj a git_tree_entry object
*/
void
SetValue
(git_tree_entry* tree);
const
char
*
Name
();
int
Attributes
();
const
git_oid*
Id
();
int
ToObject
(git_repository* repo, git_object** obj);
protected:
static
Handle<Value>
New
(
const
Arguments& args);
static
Handle<Value>
Name
(
const
Arguments& args);
static
Handle<Value>
Attributes
(
const
Arguments& args);
static
Handle<Value>
Id
(
const
Arguments& args);
static
Handle<Value>
ToObject
(
const
Arguments& args);
private:
git_tree_entry* entry;
};
#
endif
Back
|
FazBrowse Home
|
New Git URL