Skip to content

Latest commit

 

History

History
49 lines (40 loc) · 1.5 KB

File metadata and controls

49 lines (40 loc) · 1.5 KB
layout default
menu_item api
title Revert
description Version 0.10.0
return_to
API Documentation Index
/api/
sections
commit revert
#commit
#revert

Revert.commit AsyncExperimental

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)
Returns
Index

Revert.revert SyncExperimental

var result = Revert.revert(repo, commit, given_opts);
Parameters Type
repo Repository the repository to revert
commit Commit the commit to revert
given_opts RevertOptions merge flags
Returns
Number zero on success, -1 on failure.