FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
nodegit/lib/obj.js at v0.0.2 · 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
/
lib
/
obj.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
71 lines (54 loc) · 1.13 KB
Breadcrumbs
nodegit
/
lib
/
obj.js
Copy path
File metadata and controls
71 lines (54 loc) · 1.13 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
68
69
70
71
var
git
=
require
(
'../'
)
;
var
_Object
=
function
(
obj
)
{
var
self
=
{
}
;
if
(
obj
instanceof
git
.
raw
.
Object
)
{
self
.
obj
=
obj
;
}
else
{
self
.
obj
=
new
git
.
raw
.
Object
(
)
;
}
Object
.
defineProperty
(
self
,
'id'
,
{
get
:
function
(
)
{
}
,
enumerable
:
true
}
)
;
Object
.
defineProperty
(
self
,
'type'
,
{
get
:
function
(
)
{
return
self
.
obj
.
type
(
)
;
}
,
enumerable
:
true
}
)
;
Object
.
defineProperty
(
self
,
'length'
,
{
get
:
function
(
)
{
return
self
.
obj
.
size
(
)
;
}
,
enumerable
:
true
}
)
;
Object
.
defineProperty
(
self
,
'isLoose'
,
{
get
:
function
(
)
{
return
self
.
obj
.
typeIsLoose
(
)
;
}
,
enumerable
:
true
}
)
;
self
.
id
=
function
(
)
{
var
oid
=
git
.
oid
(
)
;
self
.
obj
.
id
(
oid
.
oid
)
;
return
oid
;
}
;
self
.
owner
=
function
(
)
{
var
repo
=
git
.
repo
(
)
;
self
.
obj
.
owner
(
repo
.
repo
)
;
return
repo
;
}
;
self
.
toString
=
function
(
)
{
return
self
.
obj
.
type2String
(
)
;
}
;
self
.
toType
=
function
(
type
)
{
return
self
.
obj
.
toType
(
type
)
;
}
;
self
.
free
=
function
(
)
{
return
self
.
obj
.
free
(
)
;
}
;
return
self
;
}
;
exports
.
obj
=
_Object
;
Back
|
FazBrowse Home
|
New Git URL