FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
nodegit/lib/utils/shallow_clone.js at master · nodejs-experiments/nodegit · GitHub
nodejs-experiments
nodegit
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
nodegit
/
lib
/
utils
/
shallow_clone.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
14 lines (11 loc) · 335 Bytes
Breadcrumbs
nodegit
/
lib
/
utils
/
shallow_clone.js
Copy path
File metadata and controls
14 lines (11 loc) · 335 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
var
NodeGit
=
require
(
"../../"
)
;
function
shallowClone
(
)
{
var
merges
=
Array
.
prototype
.
slice
.
call
(
arguments
)
;
return
merges
.
reduce
(
function
(
obj
,
merge
)
{
return
Object
.
keys
(
merge
)
.
reduce
(
function
(
obj
,
key
)
{
obj
[
key
]
=
merge
[
key
]
;
return
obj
;
}
,
obj
)
;
}
,
{
}
)
;
}
NodeGit
.
Utils
.
shallowClone
=
shallowClone
;
Back
|
FazBrowse Home
|
New Git URL