FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
nodegit-example/open.js at master · melodypro/nodegit-example · GitHub
melodypro
nodegit-example
Repository navigation
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
nodegit-example
/
open.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
14 lines (11 loc) · 252 Bytes
Breadcrumbs
nodegit-example
/
open.js
Copy path
File metadata and controls
14 lines (11 loc) · 252 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
'use strict'
;
const
Git
=
require
(
"nodegit"
)
;
const
cnst
=
require
(
'./constant'
)
;
Git
.
Repository
.
open
(
cnst
.
cur_git_path
)
.
then
(
(
repo
)
=>
{
console
.
log
(
'repo done, repo.workdir'
,
repo
.
workdir
(
)
)
;
repo
.
free
(
)
;
}
)
.
catch
(
(
e
)
=>
{
console
.
log
(
e
)
;
}
)
;
Back
|
FazBrowse Home
|
New Git URL