FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
nodegit/lib/config.js at master · modai888/nodegit · GitHub
modai888
nodegit
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
nodegit
/
lib
/
config.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
25 lines (22 loc) · 553 Bytes
Breadcrumbs
nodegit
/
lib
/
config.js
Copy path
File metadata and controls
25 lines (22 loc) · 553 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
25
var
util
=
require
(
"util"
)
;
var
NodeGit
=
require
(
"../"
)
;
var
Config
=
NodeGit
.
Config
;
// Backwards compatibility.
Config
.
prototype
.
getString
=
function
(
)
{
return
this
.
getStringBuf
.
apply
(
this
,
arguments
)
;
}
;
NodeGit
.
Enums
.
CVAR
=
{
}
;
var
DEPRECATED_CVAR_ENUMS
=
[
"FALSE"
,
"TRUE"
,
"INT32"
,
"STRING"
]
;
DEPRECATED_CVAR_ENUMS
.
forEach
(
(
key
)
=>
{
Object
.
defineProperty
(
NodeGit
.
Enums
.
CVAR
,
key
,
{
get
:
util
.
deprecate
(
(
)
=>
Config
.
MAP
[
key
]
,
`Use NodeGit.Config.MAP.
${
key
}
instead of NodeGit.Enums.CVAR.
${
key
}
.`
)
}
)
;
}
)
;
Back
|
FazBrowse Home
|
New Git URL