FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
nodegit/example/raw-commit.js at v0.0.72 · 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
/
raw-commit.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
13 lines (11 loc) · 368 Bytes
Breadcrumbs
nodegit
/
example
/
raw-commit.js
Copy path
File metadata and controls
13 lines (11 loc) · 368 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
(
'../'
)
.
raw
,
path
=
require
(
'path'
)
;
var
repo
=
new
git
.
Repo
(
)
;
repo
.
open
(
path
.
resolve
(
'../.git'
)
,
function
(
)
{
var
oid
=
new
git
.
Oid
(
)
;
oid
.
mkstr
(
'59b20b8d5c6ff8d09518454d4dd8b7b30f095ab5'
)
;
var
commit
=
new
git
.
Commit
(
)
;
commit
.
lookup
(
repo
,
oid
,
function
(
err
)
{
console
.
log
(
new
git
.
Error
(
)
.
strError
(
err
)
)
;
}
)
;
}
)
;
Back
|
FazBrowse Home
|
New Git URL