FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
nodegit/lib/blob.js at emscripten · jamon/nodegit · GitHub
jamon
nodegit
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
nodegit
/
lib
/
blob.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
27 lines (23 loc) · 582 Bytes
Breadcrumbs
nodegit
/
lib
/
blob.js
Copy path
File metadata and controls
27 lines (23 loc) · 582 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
24
25
26
27
var
git
=
require
(
'../'
)
,
TreeEntry
=
git
.
TreeEntry
,
Blob
=
git
.
Blob
;
var
oldContent
=
Blob
.
prototype
.
content
;
/**
* Retrieve the content of the blob.
*
@return
{
Buffer
} content
*/
Blob
.
prototype
.
content
=
function
(
)
{
return
oldContent
.
call
(
this
)
.
toBuffer
(
this
.
size
(
)
)
;
}
;
/**
* Retrieve the blob's content as String.
*/
Blob
.
prototype
.
toString
=
function
(
)
{
return
this
.
content
(
)
.
toString
(
)
;
}
;
/**
* Retrieve the blob's type.
*/
Blob
.
prototype
.
filemode
=
function
(
)
{
return
this
.
isBinary
(
)
?
TreeEntry
.
FileMode
.
Executable
:
TreeEntry
.
FileMode
.
Blob
;
}
;
Back
|
FazBrowse Home
|
New Git URL