FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
nodegit/lib/revparse.js at node-api · Chen-Software/nodegit · GitHub
Chen-Software
nodegit
Repository navigation
Code
Pull requests
23
(23)
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
nodegit
/
lib
/
revparse.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
18 lines (16 loc) · 384 Bytes
Breadcrumbs
nodegit
/
lib
/
revparse.js
Copy path
File metadata and controls
18 lines (16 loc) · 384 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
var
util
=
require
(
"util"
)
;
var
NodeGit
=
require
(
"../"
)
;
const
MODE
=
{
SINGLE
:
1
,
RANGE
:
2
,
MERGE_BASE
:
4
,
}
;
NodeGit
.
Revparse
.
MODE
=
{
}
;
Object
.
keys
(
MODE
)
.
forEach
(
(
key
)
=>
{
Object
.
defineProperty
(
NodeGit
.
Revparse
.
MODE
,
key
,
{
get
:
util
.
deprecate
(
(
)
=>
MODE
[
key
]
,
`Use NodeGit.Revspec.TYPE.
${
key
}
instead of NodeGit.Revparse.MODE.
${
key
}
.`
)
}
)
;
}
)
;
Back
|
FazBrowse Home
|
New Git URL