FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
nodegit/lib/oid.js at master · codercatdev/nodegit · GitHub
codercatdev
nodegit
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
nodegit
/
lib
/
oid.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
23 lines (19 loc) · 437 Bytes
Breadcrumbs
nodegit
/
lib
/
oid.js
Copy path
File metadata and controls
23 lines (19 loc) · 437 Bytes
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
var
NodeGit
=
require
(
"../"
)
;
var
Oid
=
NodeGit
.
Oid
;
// Backwards compatibility.
Object
.
defineProperties
(
Oid
.
prototype
,
{
"allocfmt"
:
{
value
:
Oid
.
prototype
.
tostrS
,
enumerable
:
false
}
,
"toString"
:
{
value
:
Oid
.
prototype
.
tostrS
,
enumerable
:
false
}
}
)
;
Oid
.
prototype
.
copy
=
function
(
)
{
return
this
.
cpy
(
)
;
// seriously???
}
;
Oid
.
prototype
.
inspect
=
function
(
)
{
return
"[Oid "
+
this
.
allocfmt
(
)
+
"]"
;
}
;
Back
|
FazBrowse Home
|
New Git URL