| layout |
default |
| menu_item |
api |
| title |
Reset |
| description |
Version 0.4.0 |
| return_to |
| API Documentation Index |
/api/ |
|
| sections |
| default |
reset |
TYPE |
#default |
#reset |
#TYPE |
|
Reset.default(repo, target, pathspecs).then(function(result) {
// Use result
});
| Parameters |
Type |
|
| repo |
Repository |
Repository where to perform the reset operation. |
| target |
Object |
The committish which content will be used to reset the content of the index. |
| pathspecs |
Strarray |
List of pathspecs to operate on. |
| Returns |
|
| Number |
0 on success or an error code |
| < |
|
| 0 |
|
Reset.reset(repo, target, reset_type, checkout_opts, signature, log_message).then(function(result) {
// Use result
});
| Flag | Value |
| --- | --- | --- |
| Reset.TYPE.SOFT | 1 |
| Reset.TYPE.MIXED | 2 |
| Reset.TYPE.HARD | 3 |