FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
nodegit/test/blob.js at emscripten · ZECTBynmo/nodegit · GitHub
ZECTBynmo
nodegit
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
nodegit
/
test
/
blob.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
13 lines (12 loc) · 405 Bytes
Breadcrumbs
nodegit
/
test
/
blob.js
Copy path
File metadata and controls
13 lines (12 loc) · 405 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
var
git
=
require
(
'../'
)
,
path
=
require
(
'path'
)
;
exports
.
content
=
function
(
test
)
{
var
testOid
=
git
.
Oid
.
fromString
(
'111dd657329797f6165f52f5085f61ac976dcf04'
)
;
test
.
expect
(
1
)
;
git
.
Repo
.
open
(
path
.
resolve
(
'repos/workdir/.git'
)
,
function
(
err
,
repo
)
{
repo
.
getBlob
(
testOid
,
function
(
err
,
blob
)
{
test
.
equals
(
blob
.
toString
(
)
.
slice
(
0
,
7
)
,
"@import"
)
;
test
.
done
(
)
;
}
)
;
}
)
;
}
;
Back
|
FazBrowse Home
|
New Git URL