MCPcopy Index your code
hub / github.com/nodegit/nodegit / shallowClone

Function shallowClone

lib/utils/shallow_clone.js:3–12  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1var NodeGit = require("../../");
2
3function shallowClone() {
4 var merges = Array.prototype.slice.call(arguments);
5
6 return merges.reduce(function(obj, merge) {
7 return Object.keys(merge).reduce(function(obj, key) {
8 obj[key] = merge[key];
9 return obj;
10 }, obj);
11 }, {});
12}
13
14NodeGit.Utils.shallowClone = shallowClone;

Callers 9

defaultRebaseOptionsFunction · 0.85
cherrypick.jsFile · 0.85
repository.jsFile · 0.85
remote.jsFile · 0.85
revert.jsFile · 0.85
submodule.jsFile · 0.85
stash.jsFile · 0.85
clone.jsFile · 0.85
normalizeFetchOptionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…