Skip to content

Latest commit

 

History

History
63 lines (52 loc) · 1.63 KB

File metadata and controls

63 lines (52 loc) · 1.63 KB
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 Async

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 Async

Reset.reset(repo, target, reset_type, checkout_opts, signature, log_message).then(function(result) {
  // Use result
});
Parameters Type
repo Repository
target Object
reset_type Number
checkout_opts CheckoutOptions
signature Signature
log_message String
Returns
Number

Reset.TYPE ENUM

| Flag | Value | | --- | --- | --- | | Reset.TYPE.SOFT | 1 | | Reset.TYPE.MIXED | 2 | | Reset.TYPE.HARD | 3 |