FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
nodegit/example/convenience-tree.js at v0.0.73 · 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
/
example
/
convenience-tree.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
24 lines (20 loc) · 594 Bytes
Breadcrumbs
nodegit
/
example
/
convenience-tree.js
Copy path
File metadata and controls
24 lines (20 loc) · 594 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
var
git
=
require
(
'../'
)
;
git
.
repo
(
'../.git'
,
function
(
err
,
repo
)
{
if
(
err
)
{
throw
err
;
}
repo
.
branch
(
'master'
,
function
(
err
,
branch
)
{
if
(
err
)
{
throw
err
;
}
branch
.
tree
(
)
.
walk
(
)
.
on
(
'entry'
,
function
(
idx
,
entry
)
{
//console.log(entry.entry);
console
.
log
(
entry
.
name
,
entry
.
attributes
)
;
//console.log( entry.content );
}
)
;
//branch.tree().entry('example/raw-blob.js', function( entry ) {
// if( entry ) {
// console.log(entry.name);
// }
// else {
// console.log('not found');
// }
//});
}
)
;
}
)
;
Back
|
FazBrowse Home
|
New Git URL