| layout |
default |
| menu_item |
api |
| title |
Revert |
| description |
Version 0.13.1 |
| return_to |
| API Documentation Index |
/api/ |
|
| sections |
| commit |
revert |
#commit |
#revert |
|
Revert.commit(repo, revert_commit, our_commit, mainline, merge_options).then(function(index) {
// Use index
});
| Parameters |
Type |
|
| repo |
Repository |
the repository that contains the given commits |
| revert_commit |
Commit |
the commit to revert |
| our_commit |
Commit |
the commit to revert against (eg, HEAD) |
| mainline |
Number |
the parent of the revert commit, if it is a merge |
| merge_options |
MergeOptions |
the merge options (or null for defaults) |
Revert.revert(repo, commit, given_opts).then(function(result) {
// Use result
});
| Returns |
|
| Number |
zero on success, -1 on failure. |