forked from nodegit/nodegit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathreset.js
More file actions
30 lines (25 loc) · 716 Bytes
/
reset.js
File metadata and controls
30 lines (25 loc) · 716 Bytes
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
var NodeGit = require("../");
var normalizeOptions = require("./util/normalize_options");
var Reset = NodeGit.Reset;
var defaultFn = Reset.default;
Reset.default = function(repo, target, pathspecs) {
return defaultFn.call(this, repo, target, pathspecs);
};
var reset = Reset.reset;
Reset.reset = function( repo,
target,
resetType,
checkoutOpts,
signature,
logMessage) {
checkoutOpts = normalizeOptions(checkoutOpts, NodeGit.CheckoutOptions);
return reset.call(
this,
repo,
target,
resetType,
checkoutOpts,
signature,
logMessage);
};
module.exports = Reset;