FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
nodegit/browser.js at emscripten · bezzer/nodegit · GitHub
bezzer
nodegit
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
nodegit
/
browser.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
43 lines (33 loc) · 1.06 KB
Breadcrumbs
nodegit
/
browser.js
Copy path
File metadata and controls
43 lines (33 loc) · 1.06 KB
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/**
* This code is auto-generated; unless you know what you're doing, do not modify!
**/
// Used to detect for Cygwin
var
os
=
require
(
'os'
)
;
// Required for Windows/Cygwin support
var
root
=
[
__dirname
,
'/vendor/libgit2/build/shared'
]
.
join
(
''
)
,
path
=
process
.
env
.
PATH
;
if
(
~
os
.
type
(
)
.
indexOf
(
'CYGWIN'
)
&&
!
~
path
.
indexOf
(
root
)
)
{
process
.
env
.
PATH
=
root
+
':'
+
path
;
}
// Assign raw api to module
var
rawApi
=
require
(
'./build/emscripten/nodegit'
)
;
// Set the exports prototype to the raw API.
exports
.
__proto__
=
rawApi
;
// Import extensions
//require('./lib/commit.js');
//require('./lib/blob.js');
//require('./lib/object.js');
//require('./lib/signature.js');
//require('./lib/odb.js');
//require('./lib/oid.js');
//require('./lib/index.js');
//require('./lib/repository.js');
//require('./lib/reference.js');
//require('./lib/revwalk.js');
//require('./lib/tree.js');
// Set version
exports
.
version
=
require
(
'./package'
)
.
version
;
// Initialize threads
//exports.Threads.init();
var
glob
=
typeof
window
!==
"undefined"
?
window
:
global
;
glob
.
nodegit
=
exports
;
Back
|
FazBrowse Home
|
New Git URL